/**
 * Premium seller login — app parity (better on web)
 */
:root {
  --al-wine: #6a2345;
  --al-plum: #2a0f24;
  --al-ink: #1c1218;
  --al-muted: #6b5d63;
  --al-gold: #d6b15f;
  --al-cream: #f8f4f1;
  --al-line: rgba(42, 15, 36, 0.1);
  --al-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.sg-auth-login {
  font-family: var(--al-font);
  color: var(--al-ink);
  background: #fdfbf9;
  min-height: 100dvh;
}

.sg-al-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(214, 177, 95, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(106, 35, 69, 0.08), transparent 50%),
    linear-gradient(180deg, #fdfbf9 0%, #f3ece6 48%, #ede4dc 100%);
  pointer-events: none;
}

.sg-al-wrap {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(32px + env(safe-area-inset-bottom, 0px));
}

.sg-al-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--al-muted);
  text-decoration: none;
}
.sg-al-home:hover { color: var(--al-wine); }

.sg-al-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 15, 36, 0.08);
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px rgba(42, 15, 36, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sg-al-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.sg-al-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(106, 35, 69, 0.18);
}
.sg-al-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sg-al-wordmark span { color: var(--al-wine); }

.sg-al-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.sg-al-head p {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--al-muted);
  line-height: 1.45;
}

.sg-al-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.sg-al-alert.is-error { background: #fef2f2; color: #991b1b; }
.sg-al-alert.is-ok { background: #ecfdf5; color: #047857; }
.sg-al-alert a { color: inherit; font-weight: 800; }

.sg-al-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-muted);
}
.sg-al-label[for="password"] { margin-top: 14px; }

.sg-al-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--al-line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--al-ink);
}
.sg-al-input:focus {
  outline: none;
  border-color: rgba(106, 35, 69, 0.45);
  box-shadow: 0 0 0 3px rgba(106, 35, 69, 0.12);
}

.sg-al-pw { position: relative; }
.sg-al-pw .sg-al-input { padding-right: 48px; }
.sg-al-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--al-muted);
  cursor: pointer;
  border-radius: 10px;
}

.sg-al-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.sg-al-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--al-ink);
  cursor: pointer;
}
.sg-al-check input { accent-color: var(--al-wine); width: 16px; height: 16px; }
.sg-al-meta a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--al-wine);
  text-decoration: none;
}

.sg-al-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.sg-al-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--al-wine), var(--al-plum));
  box-shadow: 0 12px 28px rgba(106, 35, 69, 0.3);
}
.sg-al-btn--primary:active { transform: scale(0.985); }
.sg-al-btn--google {
  background: #fff;
  color: var(--al-ink);
  border: 1px solid rgba(45, 21, 32, 0.12);
  box-shadow: 0 4px 14px rgba(42, 15, 36, 0.05);
}

.sg-al-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--al-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sg-al-or::before,
.sg-al-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--al-line);
}

.sg-al-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--al-muted);
}
.sg-al-switch a {
  color: var(--al-wine);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 640px) {
  .sg-al-wrap { padding-top: 48px; }
  .sg-al-card { padding: 32px 28px 28px; }
}
