/* ============================================================
   HireVision AI — Login / Auth Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #DBEAFE;
  --accent:        #7C3AED;
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --surface:       #FFFFFF;
  --radius:        14px;
  --font-head:     'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --shadow-lg:     0 20px 60px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.auth-layout {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated background blobs */
.auth-layout::before, .auth-layout::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
body::before {
  width: 500px; height: 500px;
  background: #4F46E5;
  top: -150px; left: -150px;
}
body::after {
  width: 400px; height: 400px;
  background: #7C3AED;
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(30px) scale(1.04); }
}

/* Auth card */
.auth-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1);
  position: relative;
  z-index: 1;
}

/* Brand */
.brand {
  text-align: center;
  margin-bottom: 32px;
}
.brand-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 10px;
}
.brand h1 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}
.brand p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.input-wrap  { position: relative; }
.input-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); pointer-events: none; }
.form-input  {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: #FAFBFF;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.form-input::placeholder { color: #94A3B8; }
.form-input.no-icon { padding-left: 14px; }

/* Eye toggle */
.eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.eye-btn:hover { color: var(--text); }

/* Checkbox */
.check-group { display: flex; align-items: center; gap: 8px; }
.check-group input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.check-group label { font-size: .875rem; color: var(--text-muted); cursor: pointer; }

/* Divider */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* Btn */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.btn-submit:hover  { opacity: .92; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.btn-social {
  width: 100%;
  padding: 11px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text);
  transition: border-color .15s, background .15s;
  margin-bottom: 10px;
}
.btn-social:hover { border-color: var(--primary); background: var(--primary-light); }

/* Social icon circles */
.social-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; color: #fff; flex-shrink: 0; }

/* Links */
.auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 22px; font-size: .875rem; color: var(--text-muted); }

/* Error */
.error-msg { font-size: .82rem; color: var(--danger); margin-top: 5px; display: none; }
.error-msg.show { display: block; }

/* Progress steps (register) */
.steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.step { width: 32px; height: 4px; border-radius: 100px; background: var(--border); transition: background .3s; }
.step.active { background: var(--primary); }
.step.done   { background: var(--success); }

/* Password strength */
.strength-bar { display: flex; gap: 4px; margin-top: 8px; }
.strength-bar > div { flex: 1; height: 4px; border-radius: 100px; background: var(--border); transition: background .3s; }
.strength-label { font-size: .76rem; color: var(--text-muted); margin-top: 4px; }

/* Badge */
.plan-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 100px; font-size: .82rem; font-weight: 700; }
.plan-free    { background: #F1F5F9; color: var(--text-muted); }
.plan-pro     { background: var(--primary-light); color: var(--primary); }
.plan-premium { background: #FEF3C7; color: #92400E; }

/* Plans grid */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.plan-card { border: 2px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: all .15s; text-align: center; }
.plan-card:hover { border-color: var(--primary); }
.plan-card.selected { border-color: var(--primary); background: var(--primary-light); }
.plan-card h4 { font-family: var(--font-head); font-size: .9rem; margin-bottom: 4px; }
.plan-card .price { font-size: 1.4rem; font-weight: 800; font-family: var(--font-head); }
.plan-card .price span { font-size: .75rem; font-weight: 400; color: var(--text-muted); }

@media(max-width:480px) {
  .auth-card { padding: 32px 22px; }
  .plans-grid { grid-template-columns: 1fr; }
}
