/* ===========================================
   CogniRecruit — Auth page styles
   =========================================== */

:root {
  --navy:         #0f1b3d;
  --indigo:       #4338ca;
  --indigo-mid:   #6366f1;
  --teal:         #0d9488;
  --teal-light:   #2dd4bf;
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --gray-700:     #374151;
  --gray-800:     #1e293b;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

/* === PAGE WRAPPER === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse 70% 65% at 65% 35%, rgba(99,102,241,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 55% 55% at 15% 85%, rgba(13,148,136,0.18) 0%, transparent 60%),
    linear-gradient(155deg, #0a1428 0%, #12103a 55%, #0a1e40 100%);
}

/* Dot grid overlay */
.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* === CARD === */
.auth-card {
  position: relative;
  background: rgba(255,255,255,0.98);
  border-radius: 20px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.08);
}

/* === LOGO === */
.auth-logo {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 28px;
}
.auth-logo span { color: var(--teal); }

/* === HEADINGS === */
.auth-heading {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--gray-800);
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* === ALERTS === */
.auth-alert {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #b91c1c;
  margin-bottom: 16px;
}

.auth-alert--info {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.2);
  color: var(--indigo);
}

/* === FORM FIELDS === */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}

.field input {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus {
  border-color: var(--indigo-mid);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--white);
}
.field input:hover:not(:focus) {
  border-color: var(--gray-400);
}

.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 2px;
}

/* === SUBMIT BUTTON === */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal) 0%, var(--indigo-mid) 100%);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.auth-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.auth-btn:active {
  transform: none;
  opacity: 1;
}

/* === FOOTER LINK === */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.86rem;
  color: var(--gray-600);
}
.auth-footer a {
  color: var(--indigo-mid);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px 28px; }
}
