/* Auth pages (login / signup) — no background images */
body:has(.auth-v2) {
  background-color: #eef1f6 !important;
}
body:has(.auth-v2) > header#header,
body:has(.auth-v2) > .topbg {
  display: none !important;
}

.auth-v2 {
  --auth-maroon: #8b1e3f;
  --auth-navy: #1a3a5c;
  --auth-surface: #f7f4f2;
  --auth-border: #e6ddd8;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%) !important;
  background-image: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%) !important;
  background-attachment: scroll !important;
  flex: 1 0 auto;
  padding: 36px 0 48px;
  min-height: calc(100vh - 280px);
  box-sizing: border-box;
  width: 100%;
}

.auth-v2 .auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(20, 20, 40, 0.1);
  padding: 28px 26px 24px;
  border: 1px solid var(--auth-border);
}

.auth-v2.auth-v2-signup .auth-card {
  max-width: 860px;
}

.auth-v2 .auth-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--auth-navy);
}

.auth-v2 .auth-sub {
  margin: 0 0 22px;
  text-align: center;
  color: #6c7a89;
  font-size: 14px;
  font-weight: 500;
}

.auth-v2 .form-group {
  margin-bottom: 16px;
}

.auth-v2 label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-navy);
  letter-spacing: 0.02em;
}

.auth-v2 label .fa {
  color: var(--auth-maroon);
  margin-left: 4px;
}

.auth-v2 .form-control,
.auth-v2 select.form-control {
  height: auto;
  min-height: 48px;
  border: 1px solid #d8cfc9 !important;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: #222 !important;
  background: var(--auth-surface) !important;
  box-shadow: none !important;
  width: 100%;
}

.auth-v2 .form-control:focus,
.auth-v2 select.form-control:focus {
  border-color: #c49aa8 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.1) !important;
}

.auth-v2 .password-wrap {
  position: relative;
}

.auth-v2 .password-wrap .form-control {
  padding-right: 44px;
}

.auth-v2 .password-wrap .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a6a62;
  cursor: pointer;
  z-index: 2;
}

.auth-v2 .auth-links {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 18px;
}

.auth-v2 .auth-links a {
  color: var(--auth-maroon) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.auth-v2 .auth-links a:hover {
  text-decoration: underline !important;
}

.auth-v2 .btn-auth-primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #8b1e3f, #a83355);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(139, 30, 63, 0.22);
}

.auth-v2 .btn-auth-primary:hover {
  background: linear-gradient(135deg, #6e1631, #8b1e3f);
}

.auth-v2 .btn-auth-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-v2.auth-v2-signup .btn-auth-primary {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.auth-v2 .btn-auth-secondary {
  display: block;
  width: 100%;
  border: 1.5px solid var(--auth-navy);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--auth-navy) !important;
  background: #fff;
  text-align: center;
  text-decoration: none !important;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.auth-v2 .btn-auth-secondary:hover {
  background: #f3f6fa;
  color: var(--auth-navy) !important;
}

.auth-v2 .auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #555;
  font-size: 14px;
}

.auth-v2 .auth-switch a {
  color: var(--auth-maroon) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.auth-v2 .auth-switch a:hover {
  text-decoration: underline !important;
}

.auth-v2 .auth-switch p {
  color: #555 !important;
  margin: 0;
  letter-spacing: normal;
  line-height: 1.5;
  font-size: 14px;
}

.auth-v2 .auth-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.auth-v2 .auth-field {
  width: 50%;
  padding: 0 8px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.auth-v2 .auth-field-full {
  width: 100%;
}

.auth-v2 .auth-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #faf8f6;
  margin-bottom: 10px;
  color: #333 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.auth-v2 .auth-choice input {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-v2 .auth-choice p,
.auth-v2 .auth-terms p {
  color: #444 !important;
  margin: 0;
  letter-spacing: normal;
  line-height: 1.45;
  font-size: 14px;
}

.auth-v2 .kee {
  margin: 8px 0 16px;
  display: flex;
  justify-content: center;
}

.auth-v2 .auth-terms {
  margin-bottom: 16px;
}

.auth-v2 .auth-terms label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.auth-v2 .auth-terms a {
  color: var(--auth-maroon) !important;
  font-weight: 700;
}

.auth-v2 .alert {
  border-radius: 10px;
}

@media (max-width: 767px) {
  .auth-v2 .auth-field {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .auth-v2 {
    padding: 20px 0 32px;
  }
  .auth-v2 .auth-card {
    border-radius: 12px;
    padding: 22px 16px 18px;
  }
  .auth-v2 .auth-title {
    font-size: 24px;
  }
}
