/* ==========================================================================
   AutoReg — Auth page (login / forgot / reset)
   Depends on theme.css being loaded first for --* variables.
   ========================================================================== */

.auth-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- Hero panel (left) ---------- */

.auth-hero {
  flex: 1 1 46%;
  min-height: 100vh;
  background: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); 
  z-index: 1;
}
.auth-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Make sure your actual content sits above the video */
.auth-hero > *:not(.auth-hero__video) {
  position: relative;
  z-index: 1;
}

.auth-hero__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-hero__brand .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1f1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
}
.auth-hero__brand .logo-mark span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.auth-hero__brand .wordmark {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
}

.auth-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 480px;
}

.auth-hero__content h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.auth-hero__content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Decorative swirl (CSS approximation) ----------
   Placeholder built from blurred, blended shapes so the page works
   with zero image assets. Swap for the real exported illustration
   (e.g. background-image on .auth-swirl) for a pixel-exact match. */

.auth-swirl {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.swirl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  mix-blend-mode: screen;
}

.swirl-blob.b1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -100px;
  background: conic-gradient(from 120deg, transparent 0deg, #17a95c 50deg, transparent 150deg, transparent 360deg);
  transform: rotate(10deg);
  opacity: 0.9;
}

.swirl-blob.b2 {
  width: 460px;
  height: 460px;
  bottom: -120px;
  right: -80px;
  background: conic-gradient(from 210deg, transparent 0deg, #0f7a44 70deg, transparent 170deg, transparent 360deg);
  transform: rotate(-20deg);
  opacity: 0.85;
}

.swirl-blob.b3 {
  width: 320px;
  height: 320px;
  top: 32%;
  left: 6%;
  background: radial-gradient(circle, rgba(124, 227, 160, 0.55), transparent 70%);
  opacity: 0.8;
}

.swirl-blob.b4 {
  width: 640px;
  height: 140px;
  top: 42%;
  left: -120px;
  background: linear-gradient(90deg, transparent, #4FC97C, transparent);
  transform: rotate(-16deg);
  filter: blur(22px);
  opacity: 0.55;
  border-radius: 999px;
}

/* ---------- Form panel (right) ---------- */

.auth-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
}

.auth-panel__inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert {
  position: relative;
}

.validation-summary-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alert-close {
  border: none;
  background: none;
  color: #9B2C2C;
  align-self: flex-start;
  margin-left: auto;
  line-height: 1;
  padding: 2px;
}
:root[data-theme="dark"] .alert-close { color: #F5A6A0; }

.auth-card {
  padding: 28px 26px;
}
.auth-card h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-card .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input {
  border-radius: 8px !important;
  border: 1px solid var(--border-strong);
  padding: 10px 14px;
  font-size: 13.5px;
  background: var(--surface);
  color: var(--text-primary);
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.input::placeholder { color: var(--text-muted); }

.input-group { position: relative; }
.input-group .input { padding-right: 40px; }
.input-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--text-muted);
  padding: 4px;
  z-index: 6;
  cursor: pointer;
}

.input-group .input::-ms-reveal,
.input-group .input::-ms-clear {
  display: none;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.link-sm {
  font-size: 12.5px;
  font-weight: 600;
  color: #3B5BDB;
}
:root[data-theme="dark"] .link-sm { color: #7C94F0; }

.btn-lg {
  padding: 12px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-support {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-support__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.auth-support p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-support a { color: inherit; }
.link-accent {
  color: var(--warning) !important;
  font-weight: 600;
  font-size: 13px;
}
.auth-support__copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .auth-shell { flex-direction: column; }
  .auth-hero {
    max-width: none;
    min-height: 300px;
    padding: 24px;
  }
  .auth-hero__content h1 { font-size: 26px; }
  .auth-panel { padding: 28px 16px 40px; }
}

@media (max-width: 575.98px) {
  .auth-hero { min-height: 240px; padding: 20px; }
  .auth-hero__content h1 { font-size: 22px; margin-bottom: 10px; }
  .auth-hero__content p { display: none; }
  .auth-card { padding: 22px 18px; }
}