/* =============================================
  GrandSky Airways — Auth Page Styles
  ============================================= */

body { background: var(--surface2); min-height: 100vh; color: var(--white); }

.auth-back {
  position: fixed; top: 20px; left: 20px; z-index: 100;
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 50px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.auth-back svg { width: 14px; height: 14px; }
.auth-back:hover { color: #fff; background: rgba(255,255,255,.18); }

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

/* ── LEFT VISUAL PANEL ── */
.auth-visual {
  background: linear-gradient(145deg, var(--obsidian) 0%, var(--obsidian-2) 50%, var(--obsidian) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 60px;
  position: relative; overflow: hidden;
}
.auth-visual-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25; pointer-events: none;
}
.auth-visual-orb.orb1 { width: 400px; height: 400px; background: var(--sky); top: -100px; right: -100px; animation: pulse 8s ease-in-out infinite; }
.auth-visual-orb.orb2 { width: 300px; height: 300px; background: var(--gold); bottom: -50px; left: -50px; animation: pulse 10s ease-in-out infinite reverse; }

.auth-visual-content { position: relative; z-index: 1; color: var(--white); }
.auth-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  margin-bottom: 48px; display: block;
}
.auth-logo span { color: var(--gold-bright); }
.auth-visual-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px;
}
.auth-visual-content p {
  color: rgba(255,255,255,.55);
  font-size: 16px; line-height: 1.7;
  margin-bottom: 48px; max-width: 300px;
}
.auth-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.auth-stat { display: flex; flex-direction: column; gap: 4px; }
.auth-stat strong { font-size: 22px; font-weight: 800; color: var(--gold-bright); }
.auth-stat span { font-size: 12px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }

/* ── RIGHT FORM PANEL ── */
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: var(--surface);
  overflow-y: auto;
}
.auth-card { width: 100%; max-width: 460px; }

/* Tabs */
.auth-tabs {
  display: flex; gap: 0; background: var(--surface2);
  border-radius: 12px; padding: 4px;
  margin-bottom: 32px; overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 10px; border: none;
  background: transparent; font-family: var(--font-body);
  font-size: 15px; font-weight: 500; cursor: pointer;
  color: var(--muted); border-radius: 10px;
  transition: all var(--transition);
}
.auth-tab.active {
  background: var(--surface); color: var(--gold-bright);
  font-weight: 700; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--muted); font-size: 14px;
  margin-bottom: 28px;
}

.hidden { display: none !important; }

/* Form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Password eye */
.input-eye-wrap { position: relative; }
.input-eye-wrap .form-input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; line-height: 1; opacity: .5;
  transition: opacity var(--transition);
}
.eye-btn:hover { opacity: 1; }

/* Forgot password */
.forgot-link { color: var(--sky); font-size: 13px; font-weight: 500; transition: opacity var(--transition); }
.forgot-link:hover { opacity: .7; }

/* Password strength */
.password-strength {
  height: 4px; background: var(--border);
  border-radius: 4px; margin-top: 8px; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 4px;
  transition: width .3s ease, background .3s ease;
  width: 0;
}
.strength-label { font-size: 11px; margin-top: 4px; color: var(--muted); }

/* Checkbox */
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); cursor: pointer;
  line-height: 1.5;
}
.form-check input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--sky);
}
.link { color: var(--sky); }

/* Auth submit button */
.auth-submit {
  height: 52px; font-size: 16px; font-weight: 700;
  position: relative; overflow: hidden;
}
.auth-submit.loading span::after {
  content: '…'; animation: dots 1s infinite;
}
@keyframes dots { 0%{content:'…'} 33%{content:'.. '} 66%{content:'.  '} }

/* Divider */
.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
  color: var(--muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 60px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Google button */
.google-btn {
  width: 100%; padding: 13px; border-radius: 50px;
  border: 2px solid var(--border); background: var(--surface);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition);
}
.google-btn:hover { border-color: #4285F4; box-shadow: 0 2px 12px rgba(66,133,244,.2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-back { color: var(--ink); background: var(--surface); }
  .auth-panel { padding: 80px 24px 40px; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
