/* ── EMPLOYER LOGIN PAGE ───────────────────────────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafb;
}

.employer-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 74px);
  padding: 40px 16px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

/* ── Card ─────────────────────────────────────────────────── */
.employer-auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid #e8ecf2;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* ── Header ───────────────────────────────────────────────── */
.employer-auth-head {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo {
  margin-bottom: 14px;
}

.auth-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.employer-auth-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.employer-auth-head p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  background: #f1f5f9;
  margin-bottom: 18px;
}

.tab {
  border: 0;
  border-radius: 9px;
  background: transparent;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.panel {
  display: none;
}
.panel.active {
  display: block;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.inline-end {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #ea580c;
}
.btn-primary:hover {
  background: #c2410c;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #e2e8f0;
}
.btn-outline:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

.btn-google {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.btn-google:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: #ea580c;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  position: relative;
  text-align: center;
  margin: 16px 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e8ecf2;
}

.divider span {
  position: relative;
  background: #ffffff;
  padding: 0 10px;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.step {
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}
.step.active {
  background: #ea580c;
}
.step.done {
  background: #10b981;
}

.step-label {
  margin-bottom: 14px;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

/* ── File Upload ──────────────────────────────────────────── */
.file-upload-area {
  width: 100%;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  min-height: 44px;
  font-size: 0.84rem;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.2s;
}
.file-upload-area:hover {
  border-color: #ea580c;
}

.upload-preview {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #86efac;
  background: #ecfdf5;
  display: none;
  align-items: center;
  gap: 10px;
}
.upload-preview.show {
  display: flex;
}
.upload-preview img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #d1fae5;
  background: #ffffff;
}
.upload-preview-name {
  flex: 1;
  font-size: 0.84rem;
  color: #065f46;
  font-weight: 700;
}
.upload-preview-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
  cursor: pointer;
}

/* ── Info Badge ───────────────────────────────────────────── */
.info-badge {
  border-radius: 10px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ── Terms ────────────────────────────────────────────────── */
.terms-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: #475569;
  margin-bottom: 12px;
  cursor: pointer;
}

.form-cta-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

/* ── Forgot ───────────────────────────────────────────────── */
.forgot-head {
  text-align: center;
  margin-bottom: 12px;
}
.forgot-head h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}
.forgot-head p {
  color: #64748b;
  font-size: 0.84rem;
}

/* ── Switch Link ──────────────────────────────────────────── */
.switch-copy {
  margin-top: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}
.switch-copy a {
  color: #ea580c;
  text-decoration: none;
  font-weight: 700;
}
.switch-copy a:hover {
  text-decoration: underline;
}

/* ── Utilities ────────────────────────────────────────────── */
.is-hidden {
  display: none !important;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
  min-width: 220px;
  max-width: 360px;
  font-size: 0.84rem;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}
.toast.success {
  border-left-color: #10b981;
}
.toast.error {
  border-left-color: #ef4444;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .employer-auth-page {
    padding: 24px 14px;
    align-items: flex-start;
  }
  .employer-auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .employer-auth-head h2 {
    font-size: 1.3rem;
  }
  .form-row,
  .form-cta-row {
    grid-template-columns: 1fr;
  }
}
