/* ══════════════════════════════════════════════════════════════════════════════
   PREMIUM AUTH RESTYLE — Task #1143988
   Login, Signup, & Veterans Pages — Stripe/Notion-level design

   Key Changes:
   • Premium card design with refined shadows and depth
   • Smooth form interactions with enhanced focus states
   • Gradient backgrounds with subtle patterns
   • Refined typography and spacing
   • Premium button styling with hover effects
   • Enhanced mobile responsiveness
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --premium-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --premium-shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --premium-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --premium-shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  --premium-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   AUTH PAGES — ENHANCED PREMIUM
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Page Layout Enhancement ── */
.aup-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

.aup-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Social Proof Panel (left column) — Enhanced ── */
.aup-sp-panel {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.aup-sp-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,0.15) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(139,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.aup-sp-panel > * {
  position: relative;
  z-index: 1;
}

.aup-sp-title {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: #ffffff;
}

.aup-sp-stat {
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  transition: var(--premium-transition);
}

.aup-sp-stat:hover {
  border-color: rgba(59,130,246,0.35);
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.08) 100%);
  transform: translateY(-2px);
}

.aup-sp-stat-num {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.aup-sp-stat-lbl {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.aup-sp-signals {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aup-sp-signal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--premium-transition);
}

.aup-sp-signal:hover {
  transform: translateX(4px);
}

.aup-sp-signal-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.aup-sp-signal-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.aup-sp-signal-text span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

/* ── Form Column — Enhanced ── */
.aup-form-col {
  position: relative;
  z-index: 1;
}

/* ── Card — Premium Styling ── */
.aup-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--premium-shadow-lg);
  backdrop-filter: blur(12px);
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
}

.aup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.02) 0%, rgba(139,92,246,0.01) 100%);
  pointer-events: none;
}

.aup-card > * {
  position: relative;
  z-index: 1;
}

.aup-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--premium-shadow-xl);
}

/* ── Logo — Refined ── */
.aup-logo {
  text-align: center;
  margin-bottom: 28px;
}

.aup-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  text-decoration: none;
  transition: var(--premium-transition);
}

.aup-logo a:hover {
  opacity: 0.85;
}

/* ── Title / Subtitle — Premium Typography ── */
.aup-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.25;
}

.aup-sub {
  text-align: center;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 500;
}

/* ── Pill Badge — Premium ── */
.aup-pill {
  text-align: center;
  margin-bottom: 24px;
}

.aup-pill span {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(59,130,246,0.05) 100%);
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.2);
  letter-spacing: 0.01em;
  transition: var(--premium-transition);
}

.aup-pill:hover span {
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(59,130,246,0.1) 100%);
  border-color: rgba(37,99,235,0.35);
}

/* ── Tabs — Premium ── */
.aup-tabs {
  display: flex;
  background: #f8fafc;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.aup-tab {
  flex: 1;
  padding: 11px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--premium-transition);
  position: relative;
}

.aup-tab:hover {
  color: #334155;
}

.aup-tab.active {
  background: #ffffff;
  color: #111827;
  box-shadow: var(--premium-shadow-sm);
  font-weight: 700;
}

/* ── Form Groups — Premium Spacing ── */
.aup-group {
  margin-bottom: 20px;
}

.aup-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ── Form Inputs — Premium ── */
.aup-input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: #111827;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: var(--premium-transition);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.aup-input::placeholder {
  color: #a8b0b8;
}

.aup-input:hover {
  border-color: #cbd5e1;
}

.aup-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1),
              0 0 0 2px rgba(37,99,235,0.05) inset;
}

.aup-input--error {
  border-color: #dc2626;
}

.aup-input--error:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1),
              0 0 0 2px rgba(220,38,38,0.05) inset;
}

/* ── Password Input — Premium ── */
.aup-input-wrap {
  position: relative;
}

.aup-input-wrap .aup-input {
  padding-right: 50px;
}

.aup-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 10px;
  transition: var(--premium-transition);
  touch-action: manipulation;
}

.aup-pw-toggle:hover {
  color: #2563eb;
  background: #f1f5f9;
}

.aup-pw-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

/* ── Password Strength ── */
.aup-strength-wrap {
  display: none;
  margin-top: 10px;
}

.aup-strength-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.aup-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.3s ease;
}

.aup-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
  color: #64748b;
}

.aup-hint {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* ── Forgot Password ── */
.aup-forgot {
  display: block;
  text-align: right;
  font-size: 0.8125rem;
  color: #2563eb;
  font-weight: 600;
  margin: -6px 0 20px;
  text-decoration: none;
  transition: var(--premium-transition);
}

.aup-forgot:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Premium Buttons ── */
.aup-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--premium-transition);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25),
              0 0 0 0 rgba(37,99,235,0);
  position: relative;
  overflow: hidden;
}

.aup-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.aup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35),
              0 0 0 0 rgba(37,99,235,0);
}

.aup-btn:active {
  transform: translateY(0);
}

.aup-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.aup-btn-ghost {
  display: block;
  width: 100%;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
  background: transparent;
  border: 2px solid #2563eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
}

.aup-btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2563eb;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.aup-btn-ghost:hover {
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.aup-btn-ghost:hover::before {
  opacity: 1;
}

/* ── Divider ── */
.aup-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
}

.aup-divider::before,
.aup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Error / Info / Success Messages ── */
.aup-error,
.aup-info,
.aup-success {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aup-error-icon {
  display: block;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.aup-error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.aup-info {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.aup-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

/* ── Trust Bar ── */
.aup-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.aup-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--premium-transition);
}

.aup-trust-item:hover {
  color: #2563eb;
}

.aup-trust-icon {
  font-size: 0.95rem;
  display: inline-block;
}

/* ── Tab Panels ── */
.aup-panel {
  display: none;
}

.aup-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page Footer ── */
.aup-page-footer {
  background: rgba(15,23,42,0.02);
  font-size: 0.9rem;
  color: #64748b;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   VETERANS PAGE — PREMIUM HERO & LAYOUT (Task #1142596)
   ══════════════════════════════════════════════════════════════════════════════ */

.vet-hero {
  background: linear-gradient(180deg, #0f1729 0%, #1e3a5f 40%, #1d4ed8 100%);
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.vet-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 8vw, 5rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

.vet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 179, 8, 0.15);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  color: #eab308;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  transition: var(--premium-transition);
}

.vet-eyebrow:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.6);
  transform: translateY(-2px);
}

.vet-headline {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.vet-headline .vet-accent {
  color: #eab308;
  -webkit-text-fill-color: #eab308;
}

.vet-subhead {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.vet-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.vet-cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #1e293b;
  -webkit-text-fill-color: #1e293b;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(234,179,8,0.4),
              inset 0 0 0 1px rgba(255,255,255,0.2);
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.vet-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

.vet-cta-primary:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #b8860b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234,179,8,0.45),
              inset 0 0 0 1px rgba(255,255,255,0.2);
}

.vet-cta-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  -webkit-text-fill-color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 14px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25);
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.vet-cta-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  z-index: -1;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.vet-cta-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.vet-cta-secondary:hover::before {
  opacity: 1;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .aup-page {
    grid-template-columns: 1fr;
  }

  .aup-sp-panel {
    padding: 40px 24px;
    min-height: auto;
    display: none;
  }

  .aup-form-col {
    padding: 32px 16px;
  }

  .aup-card {
    max-width: 100%;
    padding: 36px 24px;
    border-radius: 18px;
  }

  .aup-title {
    font-size: 1.5rem;
  }

  .aup-input {
    padding: 13px 16px;
    font-size: 16px;
  }

  .aup-btn,
  .aup-btn-ghost {
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .aup-trust {
    gap: 12px;
    font-size: 0.75rem;
  }

  .vet-ctas {
    flex-direction: column;
    width: 100%;
  }

  .vet-cta-primary,
  .vet-cta-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .aup-card {
    padding: 28px 18px;
    border-radius: 16px;
    margin: 0 8px;
  }

  .aup-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .aup-sub {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .aup-pill span {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .aup-group {
    margin-bottom: 16px;
  }

  .aup-input {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
  }

  .aup-btn,
  .aup-btn-ghost {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .vet-hero-inner {
    padding: 2.5rem 1rem 2rem;
  }

  .vet-headline {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .vet-subhead {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .vet-cta-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .vet-cta-secondary {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* ── Landscape mode enhancements ── */
@media (max-width: 1024px) and (orientation: landscape) {
  .vet-hero {
    min-height: auto;
    padding: 20px 0;
  }

  .vet-hero-inner {
    padding: 20px 20px;
  }
}
