/* ============================================
   AeroX AI — Auth Pages
   ============================================ */
.auth-page { min-height: 100vh; background: var(--bg-primary); }
.auth-container { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-left { display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-right: 1px solid var(--border-subtle); padding: var(--space-3xl); }
.auth-brand { max-width: 440px; }
.auth-logo { display: inline-flex; align-items: baseline; gap: 2px; margin-bottom: var(--space-3xl); text-decoration: none; }
.auth-mobile-logo { display: none; align-items: baseline; gap: 2px; margin-bottom: var(--space-xl); text-decoration: none; }
.auth-hero-text { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -2px; margin-bottom: var(--space-md); }
.auth-hero-sub { font-size: var(--text-lg); color: var(--text-secondary); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: var(--space-3xl); }
.auth-form-container { width: 100%; max-width: 420px; }
.auth-title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-xs); }
.auth-subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-2xl); }
.auth-error { padding: var(--space-md); background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); border-radius: var(--radius-md); color: var(--error); font-size: var(--text-sm); margin-bottom: var(--space-lg); }
.auth-form { margin-bottom: var(--space-xl); }
.auth-footer { text-align: center; }
.auth-footer p { font-size: var(--text-sm); color: var(--text-secondary); }
.auth-footer a { color: var(--text-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Google OAuth Button (Professional White Box) --- */
.btn-google {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.btn-google span {
  color: #0a0a0a;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-google:hover {
  background: #f4f4f4;
  border-color: #f4f4f4;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-google:active {
  transform: scale(0.98);
  background: #e8e8e8;
  border-color: #e8e8e8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-google:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-google.loading svg,
.btn-google.loading span {
  opacity: 0;
}

/* --- Auth Divider --- */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-xl) 0;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-primary);
}

.auth-divider span {
  padding: 0 var(--space-md);
  color: var(--text-muted);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .auth-left { padding: var(--space-2xl); }
  .auth-right { padding: var(--space-2xl); }
  .auth-hero-text { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .auth-container { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-left { display: none; }
  .auth-right { padding: var(--space-2xl) var(--space-lg); min-height: 100vh; align-items: center; }
  .auth-mobile-logo { display: inline-flex; }
  .auth-form-container { max-width: 100%; }
}

@media (max-width: 480px) {
  .auth-right { padding: var(--space-xl) var(--space-md); }
  .auth-title { font-size: 1.5rem; }
  .auth-subtitle { font-size: 13px; margin-bottom: var(--space-lg); }
  .form-input { padding: 0.65rem 0.85rem; font-size: 14px; }
  .btn { padding: 0.7rem 1.25rem; font-size: 14px; }
}


/* ============================================
   Auth — premium motion & ambience
   ============================================ */
.auth-left { position: relative; overflow: hidden; }
.auth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0.85; }
.auth-left::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent 30%, var(--bg-secondary) 100%); pointer-events: none; }
.auth-brand { position: relative; z-index: 2; }
.auth-brand-badge { display: flex; width: max-content; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border-primary); border-radius: var(--radius-full); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: var(--space-xl); }
.auth-brand-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: authPulse 2s infinite; }
@keyframes authPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.auth-points { list-style: none; margin-top: var(--space-2xl); display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: var(--text-sm); color: var(--text-secondary); }
.auth-points svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-primary); padding: 3px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-card); }
.auth-quote { margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--text-tertiary); font-style: italic; line-height: 1.7; }
.auth-quote b { display: block; font-style: normal; margin-top: 8px; color: var(--text-secondary); letter-spacing: 1px; font-size: 11px; text-transform: uppercase; }

/* staggered entrance */
@keyframes authIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.auth-brand > * { animation: authIn 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.auth-brand > *:nth-child(1) { animation-delay: 0.05s; } .auth-brand > *:nth-child(2) { animation-delay: 0.15s; }
.auth-brand > *:nth-child(3) { animation-delay: 0.25s; } .auth-brand > *:nth-child(4) { animation-delay: 0.35s; }
.auth-brand > *:nth-child(5) { animation-delay: 0.45s; } .auth-brand > *:nth-child(6) { animation-delay: 0.55s; }
.auth-form-container > * { animation: authIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.auth-form-container > *:nth-child(1) { animation-delay: 0.10s; } .auth-form-container > *:nth-child(2) { animation-delay: 0.16s; }
.auth-form-container > *:nth-child(3) { animation-delay: 0.22s; } .auth-form-container > *:nth-child(4) { animation-delay: 0.28s; }
.auth-form-container > *:nth-child(5) { animation-delay: 0.34s; } .auth-form-container > *:nth-child(6) { animation-delay: 0.40s; }
.auth-form-container > *:nth-child(7) { animation-delay: 0.46s; } .auth-form-container > *:nth-child(8) { animation-delay: 0.52s; }
.auth-form .form-group { animation: authIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.40s; } .auth-form .form-group:nth-child(3) { animation-delay: 0.46s; }
.auth-form .form-row .form-group { animation-delay: 0.52s; }

/* inputs */
.auth-page .form-input { transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, transform 0.2s ease; }
.auth-page .form-input:hover { border-color: var(--border-focus); }
.auth-page .form-input:focus { border-color: var(--text-secondary); box-shadow: 0 0 0 4px rgba(255,255,255,0.06); background: var(--bg-tertiary); }
.auth-page .form-label { transition: color 0.2s ease; }
.auth-page .form-group:focus-within .form-label { color: var(--text-primary); }
.pw-field { position: relative; }
.pw-field .form-input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-tertiary); transition: color 0.2s, background 0.2s; }
.pw-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
.pw-toggle svg { width: 16px; height: 16px; }
.pw-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-strength span { height: 3px; border-radius: 2px; background: var(--bg-surface); transition: background 0.3s ease, box-shadow 0.3s ease; }
.pw-strength[data-level="1"] span:nth-child(-n+1) { background: var(--error); }
.pw-strength[data-level="2"] span:nth-child(-n+2) { background: var(--warning); }
.pw-strength[data-level="3"] span:nth-child(-n+3) { background: var(--text-secondary); }
.pw-strength[data-level="4"] span { background: var(--success); box-shadow: 0 0 8px rgba(74,222,128,0.35); }
.pw-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; min-height: 14px; letter-spacing: 0.3px; }
.pw-match { font-size: 11px; margin-top: 6px; min-height: 14px; color: var(--text-tertiary); }
.pw-match.ok { color: var(--success); } .pw-match.bad { color: var(--error); }

/* buttons & alerts */
.auth-page .btn-primary { position: relative; overflow: hidden; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, opacity 0.25s ease; }
.auth-page .btn-primary:hover { box-shadow: 0 8px 28px rgba(255,255,255,0.16); }
.auth-page .btn-primary::before { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(0,0,0,0.08), transparent); transform: skewX(-20deg); transition: left 0.6s ease; }
.auth-page .btn-primary:hover::before { left: 160%; }
@keyframes authShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.auth-error.shake { animation: authShake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
.auth-error { display: flex; align-items: center; gap: 10px; }
.auth-error::before { content: '!'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.auth-footer a { transition: opacity 0.2s; } .auth-footer a:hover { opacity: 0.75; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-xl); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.auth-secure svg { width: 12px; height: 12px; }

@media (max-width: 768px) { .auth-right { position: relative; } .auth-mobile-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; } .auth-form-container { position: relative; z-index: 1; } }
@media (prefers-reduced-motion: reduce) { .auth-brand > *, .auth-form-container > *, .auth-form .form-group { animation: none !important; } }
