/* ==========================================================================
   MyJobAlly — Split-screen auth pages (candidate + employer)
   Deliberately excludes the main site header/footer — auth pages convert
   better without site-wide nav pulling attention away from sign in/up.
   ========================================================================== */

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  font-family: var(--font-body);
}

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

/* ---- Left: value-prop hero panel ---- */
.auth-hero-panel {
  background: var(--brand-navy);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-hero-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,53,106,0.18), transparent 70%);
}

/* Employer-mode accent override — added on request, to make the two
   auth flows visually distinct at a glance rather than relying on
   someone actually reading the copy to notice which portal they're on.
   Scoped to .employer-mode on <body> (only employer/login.php +
   employer/register.php set this class) rather than touching the
   shared .btn-primary/.auth-hero-badge/etc. rules directly — those stay
   exactly as they were for candidate pages and every other page on the
   site that also uses .btn-primary. */
.employer-mode .auth-hero-panel::before {
  background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 70%);
}
.employer-mode .auth-hero-badge {
  background: rgba(37,99,235,0.18);
  color: #93C5FD;
}
.employer-mode .auth-hero-panel h1 .highlight { color: #60A5FA; }
.employer-mode .auth-hero-toplink:hover { border-color: #2563EB; color: #93C5FD; }
.employer-mode .remember-me input,
.employer-mode .terms-agree input { accent-color: #2563EB; }
.employer-mode .btn.btn-primary { background: #2563EB; }
.employer-mode .btn.btn-primary:hover { box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); background: #1D4ED8; }
.employer-mode a:not(.btn):not(.auth-hero-toplink) { color: #2563EB; }
.employer-mode .toggle-password:hover,
.employer-mode input:focus { border-color: #2563EB !important; }

.auth-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.auth-hero-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.auth-hero-logo .logo-my { color: var(--brand-blue); }
.auth-hero-logo .logo-jobally { color: #fff; }

.auth-hero-toplink {
  font-size: 13.5px;
  color: #C4C9D0;
  border: 1px solid #3A4552;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.auth-hero-toplink:hover { border-color: var(--brand-pink); color: #fff; }

.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247,53,106,0.15);
  color: #FF95B2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: var(--space-md);
  position: relative;
}

.auth-hero-panel h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-sm);
  position: relative;
}
.auth-hero-panel h1 .highlight { color: var(--brand-pink-light); }

.auth-hero-panel .subtext {
  color: #A8AFB9;
  font-size: 15px;
  max-width: 420px;
  margin-bottom: var(--space-lg);
  position: relative;
}

.auth-hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}
.auth-hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.auth-hero-stats .stat-label {
  font-size: 12.5px;
  color: #8A93A0;
}

.auth-hero-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-lg);
  position: relative;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.preview-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.preview-card-body { flex: 1; min-width: 0; }
.preview-card-body strong { display: block; font-size: 14px; color: #fff; }
.preview-card-body span { font-size: 12.5px; color: #8A93A0; }

.preview-card-metric {
  text-align: right;
  flex-shrink: 0;
}
.preview-card-metric .amount { font-size: 13px; font-weight: 600; color: #fff; }
.preview-card-metric .match {
  font-size: 11px;
  color: #6EE7B7;
  background: rgba(110,231,183,0.12);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
  display: inline-block;
}

.auth-hero-testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  position: relative;
}
.auth-hero-testimonial p {
  font-size: 13.5px;
  color: #C4C9D0;
  font-style: italic;
  margin-bottom: var(--space-sm);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-author .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 13px; color: #fff; }
.testimonial-author span { font-size: 12px; color: #8A93A0; }
.testimonial-stars { margin-left: auto; color: #FFC94D; font-size: 12px; }

/* ---- Right: form panel ---- */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  background: #fff;
}

.auth-form-inner { width: 100%; max-width: 400px; }

.portal-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
  font-size: 13px;
}

.portal-badge-bar .portal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
}
.portal-badge-bar .portal-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-pink-soft);
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.portal-badge-bar .portal-icon .icon { width: 14px; height: 14px; }
.portal-badge-bar strong { color: var(--text-dark); }
.portal-badge-bar .switch-portal-link { color: var(--brand-pink); font-weight: 600; white-space: nowrap; }

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tabs a.active {
  color: var(--brand-pink);
  border-bottom-color: var(--brand-pink);
}

.auth-form-heading { margin-bottom: var(--space-md); }
.auth-form-heading h2 { font-size: 22px; margin-bottom: 4px; }
.auth-form-heading p { font-size: 14px; color: var(--text-muted); }

.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.btn-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  cursor: pointer;
  width: 100%;
}
.btn-social:hover { background: var(--bg-alt); }
.btn-social .icon { width: 18px; height: 18px; }
.btn-social span { flex: 1; text-align: center; margin-right: 18px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-md) 0;
  color: var(--text-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}
.form-group input:focus { border-color: var(--brand-pink); }

.form-input-wrap { position: relative; }
.form-input-wrap input { padding-right: 42px; }
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.toggle-password .icon { width: 18px; height: 18px; }

.form-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 13.5px;
}
.remember-me { display: flex; align-items: center; gap: 8px; color: var(--text-body); }
.remember-me input { accent-color: var(--brand-pink); }
.forgot-password-link { color: var(--brand-pink); font-weight: 500; }

.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.terms-agree input { accent-color: var(--brand-pink); margin-top: 3px; }
.terms-agree a { color: var(--brand-pink); }

.auth-submit { width: 100%; }

.auth-form-footer-links {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-muted);
}
.auth-form-footer-links a { color: var(--text-muted); margin: 0 6px; }
.auth-form-footer-links a:hover { color: var(--brand-pink); }

/* ---- Responsive: stack on narrow screens ---- */
@media (max-width: 900px) {
  .auth-split-page { grid-template-columns: 1fr; }
  .auth-hero-panel { display: none; } /* hide value-prop panel on mobile, form-first */
}
