/* ═══════════════════════════════════════════
   AUTH — Redesign 2026
   Split layout: photo left, form right
   Minimal, editorial, grounded.
   index.css is loaded first for nav/header styles.
   This file only contains auth-page overrides.
   ═══════════════════════════════════════════ */

/* Override body for auth page dark split background */
body {
  background: var(--bg-dark);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}



/* ═══════════════════════════════════════════
   AUTH PAGE — full-screen split
   ═══════════════════════════════════════════ */
.auth-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

/* ─── LEFT PANEL — photo ─── */
.auth-photo {
  position: relative;
  overflow: hidden;
}

.auth-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) saturate(0.9);
}

.auth-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,14,11,0.30) 0%,
    rgba(8,14,11,0.10) 40%,
    rgba(8,14,11,0.55) 100%
  );
}

.auth-photo-content {
  position: absolute;
  bottom: 52px;
  left: 48px;
  right: 48px;
  z-index: 2;
}

.auth-photo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.auth-photo-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}

.auth-photo-title em {
  font-style: italic;
  color: var(--gold);
}

.auth-photo-caption {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  line-height: 1.55;
  max-width: 340px;
}

/* ─── RIGHT PANEL — form ─── */
.auth-form-panel {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 60px;
  overflow-y: auto;
}

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

/* Heading above the card */
.auth-heading {
  margin-bottom: 32px;
}

.auth-heading-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.auth-heading-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ─── TAB SWITCHER ─── */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 28px;
  position: relative;
}

.auth-tab {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 4px 12px;
  text-align: left;
  color: var(--text-tertiary);
  transition: color 0.28s var(--ease-out);
  position: relative;
  z-index: 2;
  white-space: nowrap;
  border-radius: 0;
  background: none;
}

.auth-tab.active {
  color: var(--text-primary);
}

/* Sliding underline indicator */
.auth-tab-indicator {
  position: absolute;
  bottom: -1.5px;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
  transition: left 0.38s var(--ease-out), width 0.38s var(--ease-out);
}

/* ─── FORM PANELS ─── */
.auth-panels {
  position: relative;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* ─── FORM FIELDS ─── */
.auth-field {
  margin-bottom: 16px;
}

.auth-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.auth-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.auth-field-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 160, 144, 0.08);
}

.auth-field-wrap i {
  width: 15px;
  height: 15px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.auth-field-wrap:focus-within i {
  color: var(--accent-dark);
}

.auth-field-wrap input {
  background: transparent;
  outline: none;
  border: none;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.auth-field-wrap input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.auth-field-wrap .toggle-pw {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 0.2s ease, background 0.2s ease;
}

.auth-field-wrap .toggle-pw:hover {
  color: var(--text-primary);
  background: rgba(10, 26, 20, 0.05);
}

.auth-field-wrap .toggle-pw i {
  width: 14px;
  height: 14px;
  color: inherit;
}

/* ─── OPTIONS ROW ─── */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12.5px;
  user-select: none;
}

.auth-checkbox-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-forgot {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.auth-forgot:hover {
  color: var(--accent-dark);
}

/* ─── SUBMIT BUTTON ─── */
.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.18s ease;
  box-shadow: 0 2px 12px rgba(10,26,20,0.18);
}

.auth-submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(12, 131, 120, 0.30);
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10,26,20,0.14);
}

.auth-submit-btn i {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.auth-submit-btn:hover i {
  transform: translateX(3px);
}

/* Override index.css generic .btn-glow for auth submit */
.auth-submit-btn.btn-glow {
  animation: glowPulseAuth 3.2s ease-in-out infinite !important;
}

.auth-submit-btn.btn-glow:hover {
  animation: none !important;
  box-shadow: 0 6px 22px rgba(12, 131, 120, 0.35) !important;
}

@keyframes glowPulseAuth {
  0%, 100% { box-shadow: 0 2px 12px rgba(10,26,20,0.18); }
  50%       { box-shadow: 0 4px 24px rgba(15,160,144,0.28), 0 2px 12px rgba(10,26,20,0.12); }
}

/* ─── DIVIDER ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

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

.auth-divider span:not(.auth-divider-line) {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

/* ─── SOCIAL BUTTONS ─── */
.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-social-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
  user-select: none;
}

.auth-social-btn svg,
.auth-social-btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.google-btn {
  background: #fff;
  color: #202124;
  border-color: #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  border-color: #c8c8c8;
}

.apple-btn {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 1px 6px rgba(0,0,0,0.20);
}

.apple-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.google-btn:active,
.apple-btn:active {
  transform: scale(0.98);
}

/* ─── SWITCH TEXT ─── */
.auth-switch-text {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-switch-text button {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 13px;
  margin-left: 2px;
  transition: color 0.25s ease;
}

.auth-switch-text button:hover {
  color: var(--accent);
}

/* ─── TOAST ─── */
.auth-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 9999;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.42s var(--ease-out);
  white-space: nowrap;
}

.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.auth-toast--success {
  background: #0a1a14;
  color: var(--accent-light);
  border: 1px solid rgba(15,160,144,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.auth-toast--error {
  background: #1a0a0a;
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
  }

  .auth-photo {
    display: none;
  }

  .auth-form-panel {
    padding: 100px 24px 60px;
    min-height: 100svh;
    background: var(--bg-primary);
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 90px 18px 50px;
  }

  .auth-heading-title {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit-btn.btn-glow {
    animation: none !important;
  }
}
