/* ============================================================
   AUTH & EMPLOYER PORTAL UI/UX
   ============================================================ */
body.auth-page-body {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9375rem !important;
  line-height: 1.55;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 134, 43, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(27, 42, 68, 0.12) 0%, transparent 46%),
    linear-gradient(160deg, #f7f4ec 0%, #ebe6d9 100%) !important;
  color: #1f2937 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] body.auth-page-body {
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 134, 43, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(47, 84, 150, 0.18) 0%, transparent 46%),
    linear-gradient(160deg, #0c111b 0%, #111927 100%) !important;
  color: #e8eaed !important;
}

.auth-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1050;
}

.auth-theme-toggle .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 42, 68, 0.14);
  color: var(--ink, #1B2A44);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

[data-theme="dark"] .auth-theme-toggle .theme-toggle-btn {
  background: rgba(26, 33, 46, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8eaed;
}

.auth-shell {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.auth-split-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(27, 42, 68, 0.08);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14), 0 4px 16px rgba(17, 24, 39, 0.05);
}

[data-theme="dark"] .auth-split-card {
  background: var(--bg-card, #1a2130);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-brand-panel {
  position: relative;
  padding: 2.5rem 2.25rem;
  background:
    radial-gradient(circle at top right, rgba(184, 134, 43, 0.24) 0%, transparent 52%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    linear-gradient(155deg, var(--ink, #1B2A44) 0%, var(--ink-2, #223759) 62%, #131f35 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.auth-brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1.5px solid rgba(184, 134, 43, 0.45);
  width: fit-content;
}

.auth-brand-logo-badge img {
  max-height: 54px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6d58a;
  background: rgba(184, 134, 43, 0.16);
  border: 1px solid rgba(184, 134, 43, 0.38);
  width: fit-content;
}

.auth-brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0.9rem 0 0.6rem;
}

.auth-brand-copy {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.auth-feature-list i {
  color: #e8be66;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.auth-brand-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.auth-brand-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}

.auth-brand-footer a:hover {
  color: #f6d58a;
}

.auth-form-panel {
  padding: 2.5rem 2.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-mobile-brand {
  display: none;
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-form-header h1,
.auth-form-header h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink, #1B2A44);
  margin: 0 0 0.3rem;
}

[data-theme="dark"] .auth-form-header h1,
[data-theme="dark"] .auth-form-header h4 {
  color: #f3f4f6;
}

.auth-form-header p {
  font-size: 0.86rem;
  color: #6b7280;
  margin: 0;
}

[data-theme="dark"] .auth-form-header p {
  color: #9ca3af;
}

.auth-form-panel .form-label {
  font-size: 0.8rem !important;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .auth-form-panel .form-label {
  color: #d1d5db;
}

.auth-field-wrap {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 6;
  transition: color 0.15s ease;
}

.auth-field-wrap:focus-within .auth-field-icon {
  color: var(--brass, #B8862B);
}

.auth-form-panel .form-control,
.auth-form-panel .form-select {
  font-size: 0.88rem !important;
  min-height: 44px;
  border-radius: 10px !important;
  border: 1.5px solid #d9dee7;
  padding: 0.55rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-wrap .form-control,
.auth-field-wrap .form-select {
  padding-left: 2.55rem;
}

.auth-form-panel .form-control:focus,
.auth-form-panel .form-select:focus {
  border-color: var(--brass, #B8862B) !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 43, 0.16) !important;
}

[data-theme="dark"] .auth-form-panel .form-control,
[data-theme="dark"] .auth-form-panel .form-select {
  border-color: #2f3b4f !important;
  background-color: #131a26 !important;
}

.auth-form-panel .form-check-label {
  font-size: 0.82rem;
}

.auth-link {
  color: var(--ink-2, #223759);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: var(--brass-dark, #8E6A20);
  text-decoration: underline;
}

[data-theme="dark"] .auth-link {
  color: #e8be66;
}

[data-theme="dark"] .auth-link:hover {
  color: #f6d58a;
}

.btn-auth-primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--ink, #1B2A44) 0%, var(--ink-2, #223759) 100%);
  box-shadow: 0 8px 20px rgba(27, 42, 68, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-auth-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 42, 68, 0.3);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

.auth-footer-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(107, 114, 128, 0.16);
  display: grid;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.82rem;
}

.auth-alert {
  border-radius: 10px;
  font-size: 0.83rem;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 991.98px) {
  body.auth-page-body {
    padding: 1.25rem 0.85rem;
    align-items: flex-start;
  }

  .auth-shell {
    max-width: 500px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .auth-split-card {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-mobile-brand {
    display: block;
  }

  .auth-form-panel {
    padding: 1.75rem 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .auth-form-panel {
    padding: 1.5rem 1.15rem;
  }
}

