/* ============================================================
   TONGRAAL — Login / Sign-up Page
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left panel — editorial image ── */
.auth-panel {
  position: relative;
  overflow: hidden;
  background: #2B2420;
  min-height: 100vh;
}

.auth-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.auth-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(43,36,32,0.3) 0%,
    rgba(43,36,32,0.6) 60%,
    rgba(43,36,32,0.85) 100%
  );
}

.auth-panel__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.auth-panel__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: #FFFDF9;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.auth-panel__editorial {
  padding-bottom: 1rem;
}

.auth-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255,253,249,0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,253,249,0.7);
  margin-bottom: 1.25rem;
}

.auth-panel__quote {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 500;
  color: #FFFDF9;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.auth-panel__byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-panel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,253,249,0.4);
}

.auth-panel__byline-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-panel__byline-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFDF9;
}

.auth-panel__byline-shop {
  font-size: 11.5px;
  color: rgba(255,253,249,0.6);
}

.auth-panel__stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,253,249,0.15);
}

.auth-stat {}

.auth-stat__val {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  color: #FFFDF9;
  line-height: 1;
}

.auth-stat__label {
  font-size: 11px;
  color: rgba(255,253,249,0.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Right panel — form ── */
.auth-form-panel {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  min-height: 100vh;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

/* Mobile brand (hidden on desktop) */
.auth-mobile-brand {
  display: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 2rem;
}

/* Mode tabs */
.auth-mode-tabs {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 0;
  border: 0;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  color: var(--ink-soft);
}

.auth-tab.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31,31,31,0.15);
}

/* Heading */
.auth-heading {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.auth-sub {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-sub a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-sub a:hover { text-decoration: underline; }

/* Google button */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.7rem 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.25rem;
}
.auth-google-btn:hover {
  border-color: var(--hair);
  box-shadow: 0 2px 8px rgba(31,31,31,0.08);
}

.auth-google-btn svg { flex-shrink: 0; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider__text {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Form fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap svg {
  position: absolute;
  left: 0.875rem;
  width: 16px;
  height: 16px;
  color: var(--ink-mute);
  stroke-width: 2;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.875rem 0.65rem 2.5rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder { color: var(--ink-mute); }

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,106,74,0.1);
}

.auth-input--no-icon {
  padding-left: 0.875rem;
}

/* Password toggle */
.auth-pw-toggle {
  position: absolute;
  right: 0.875rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink-mute);
  display: flex;
  transition: color 0.15s;
}
.auth-pw-toggle:hover { color: var(--ink); }
.auth-pw-toggle svg { width: 16px; height: 16px; stroke-width: 2; }

/* Forgot link */
.auth-forgot {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  margin-top: -0.25rem;
  align-self: flex-end;
}
.auth-forgot:hover { text-decoration: underline; }

/* Account type selector */
.auth-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.auth-type-card {
  padding: 0.875rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.auth-type-card.selected {
  border-color: var(--accent);
  background: rgba(196,106,74,0.05);
  box-shadow: 0 0 0 3px rgba(196,106,74,0.08);
}

.auth-type-icon { font-size: 1.3rem; margin-bottom: 0.35rem; }

.auth-type-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.auth-type-desc {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* Terms */
.auth-terms {
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.auth-terms a { color: var(--accent); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}
.auth-submit:hover { background: var(--accent-deep); }
.auth-submit:active { transform: scale(0.99); }

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 1.25rem;
}
.auth-switch a { color: var(--accent); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Seller nudge */
.auth-seller-nudge {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}
.auth-seller-nudge:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(196,106,74,0.1);
}

.auth-seller-nudge__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.auth-seller-nudge__body { flex: 1; min-width: 0; }

.auth-seller-nudge__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 2px;
}

.auth-seller-nudge__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.auth-seller-nudge svg {
  width: 16px;
  height: 16px;
  color: var(--ink-mute);
  stroke-width: 2;
  flex-shrink: 0;
}

/* Error / success states */
.auth-error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(196,74,74,0.08);
  border: 1px solid rgba(196,74,74,0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #C44A4A;
}
.auth-error.visible { display: flex; }
.auth-error svg { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }

/* ── Panels show/hide ── */
.auth-panel-login,
.auth-panel-signup { display: none; }
.auth-panel-login.active,
.auth-panel-signup.active { display: flex; flex-direction: column; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-panel {
    padding: 2rem 1.5rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }
  .auth-mobile-brand { display: block; }
  .auth-form-wrap { max-width: 100%; }
}
