/* assets/css/auth.css — Shared styles for all auth pages */

:root {
  --primary:       #1967d2;
  --primary-dark:  #0d47a1;
  --primary-light: #e8f0fe;
  --accent:        #ff6d00;
  --navy:          #0a1931;
  --text:          #1c1c2e;
  --muted:         #5f6b7c;
  --border:        #e2e8f0;
  --bg:            #f8faff;
  --danger:        #dc2626;
  --success:       #16a34a;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── AUTH LAYOUT ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* Left panel — decorative */
.auth-panel {
  width: 45%;
  background: linear-gradient(145deg, #0a1931 0%, #1967d2 55%, #1565c0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-panel-content { position: relative; z-index: 1; }
.auth-panel-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; text-decoration: none; }
.auth-panel-logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.auth-panel-logo-text small { display: block; font-size: .6rem; font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: .06em; }
.auth-panel h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.auth-panel h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: #93c5fd; }
.auth-panel p { font-size: .9rem; color: rgba(255,255,255,.68); line-height: 1.72; max-width: 360px; }
.auth-stats { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; }
.auth-stat-item { text-align: left; }
.auth-stat-item .num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.auth-stat-item .lbl { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Right panel — form */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  overflow-y: auto;
}
.auth-form-wrap { max-width: 440px; width: 100%; margin: 0 auto; }
.auth-form-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-form-sub { font-size: .86rem; color: var(--muted); margin-bottom: 28px; }
.auth-row { display: flex; gap: 14px; }
.auth-row > * { flex: 1; min-width: 0; }
.auth-row-cta { display: flex; gap: 10px; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.form-group label span { color: var(--danger); margin-left: 2px; }
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .95rem; pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,103,210,.12);
}
.input-wrap input.is-error { border-color: var(--danger); }
.input-wrap .toggle-pass {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .95rem; padding: 2px;
}
.field-error { font-size: .74rem; color: var(--danger); margin-top: 5px; display: block; }

/* ── BUTTONS ── */
.btn-auth {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: .92rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover { background: var(--primary-dark); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; }

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

/* ── TABS (User / Employer) ── */
.auth-tabs { display: flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tab {
  flex: 1; padding: 9px 10px; border-radius: 7px;
  font-size: .82rem; font-weight: 700; text-align: center;
  color: var(--muted); cursor: pointer; transition: .2s;
  text-decoration: none; border: none; background: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 6px rgba(0,0,0,.09); }

/* ── ALERTS ── */
.alert { border-radius: 10px; padding: 12px 16px; font-size: .84rem; margin-bottom: 18px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error    { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info     { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── MISC ── */
.auth-footer-links { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 22px; }
.auth-footer-links a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-footer-links a:hover { text-decoration: underline; }
.password-strength { margin-top: 6px; }
.ps-bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ps-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }
.ps-label { font-size: .7rem; color: var(--muted); margin-top: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-panel { display: none; }
  .auth-form-panel { padding: 20px 14px; }
  .auth-form-wrap {
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(25,103,210,.12);
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .auth-form-title { font-size: 1.3rem; }
  .auth-form-sub { font-size: .82rem; margin-bottom: 22px; }
  .auth-tabs { gap: 6px; padding: 5px; }
  .auth-tab { font-size: .76rem; padding: 10px 8px; }
  .auth-row,
  .auth-row-cta { flex-direction: column; gap: 10px; }
  .input-wrap input,
  .input-wrap select { font-size: 16px; }
}
@media (max-width: 480px) {
  .auth-form-panel { padding: 12px; }
  .auth-form-wrap { padding: 16px; border-radius: 14px; }
  .auth-form-title { font-size: 1.2rem; }
}
