/* Enhancements for auth screens only */
.auth-page { min-height: 100vh; position: relative; }
/* Full-page background gradient that adapts to scheme */
.auth-page::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(var(--bs-primary-rgb, 13,110,253), .12), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(var(--bs-secondary-rgb, 220,53,69), .10), transparent 60%),
              linear-gradient(180deg, var(--bs-body-bg), var(--bs-body-bg));
}
.auth-aside { position: relative; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.35)); }
.auth-aside > * { position: relative; }

.auth-wrapper { width: 100%; }
.auth-surface { max-width: min(100%, 960px); border-radius: 1.5rem; background: var(--bs-body-bg); box-shadow: 0 40px 90px rgba(15,23,42,.25); border: 1px solid rgba(var(--bs-border-color-rgb, 222, 226, 230), .35); }
@supports (backdrop-filter: blur(14px)) {
  .auth-surface { background: rgba(var(--bs-body-bg-rgb, 255,255,255), .82); backdrop-filter: blur(14px); }
}
.auth-body { width: min(100%, 880px); margin: 0 auto; }
@media (min-width: 992px) {
  .auth-body { width: min(100%, 900px); }
}
.auth-form { background: rgba(var(--bs-body-bg-rgb, 255,255,255), .9); border-radius: 1.25rem; box-shadow: 0 22px 45px rgba(15,23,42,.12); padding: clamp(2.5rem, 3vw + 1rem, 3.75rem); border: 1px solid rgba(var(--bs-border-color-rgb, 222, 226, 230), .7); height: 100%; }
@supports (backdrop-filter: blur(12px)) {
  .auth-form { backdrop-filter: blur(12px); }
}
.auth-highlights { background: linear-gradient(140deg, rgba(var(--bs-primary-rgb, 13,110,253), .95), rgba(104, 69, 255, .92)); border-radius: 1.25rem; padding: clamp(2.5rem, 3vw + 1rem, 4rem); position: relative; overflow: hidden; }
.auth-highlights::after { content: ""; position: absolute; inset: auto -40% -40% auto; width: 320px; height: 320px; background: radial-gradient(circle at center, rgba(255,255,255,.35), transparent 70%); opacity: .6; }
.auth-highlights > * { position: relative; }
.auth-highlights .badge { background: rgba(255,255,255,.15); color: #fff; letter-spacing: .12em; }
.auth-highlights .svg-icon svg { width: 1.75rem; height: 1.75rem; }
.auth-highlights-list { max-width: 420px; width: 100%; }
.auth-highlights-list .svg-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border-radius: 999px; padding: .75rem; }

@media (max-width: 991.98px) {
  .auth-form { padding: 2.5rem; }
  .auth-highlights { border-radius: 1rem; }
}

/* Input group icons alignment */
.input-group-text { background-color: var(--bs-secondary-bg); border-color: var(--bs-border-color); }
.input-group .btn.btn-icon { border-color: var(--bs-border-color); background: var(--bs-secondary-bg); }
.input-group .form-control { border-left: 0; }
.input-group .form-control:focus { box-shadow: none; }

/* CTA button elevation */
#kt_sign_in_submit.btn-primary { box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb, 13,110,253), .25); }
#kt_sign_in_submit.btn-primary:hover { box-shadow: 0 14px 36px rgba(var(--bs-primary-rgb, 13,110,253), .3); }

/* Footer contact styling */
.auth-footer { color: var(--bs-secondary-color); font-size: .95rem; line-height: 1.5; }
.auth-footer a { color: var(--bs-link-color); }

/* Top-right scheme dropdown always above content */
.auth-scheme-toggle { z-index: 2000; }
.auth-scheme-toggle .btn { box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* Color scheme picker */
.scheme-picker { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-bottom: 1rem; }
.scheme-option { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; cursor: pointer; text-decoration: none; color: var(--bs-body-color); transition: background-color .15s ease, border-color .15s ease; }
.scheme-option:hover { background-color: var(--bs-secondary-bg); }
.scheme-option.active { border-color: var(--bs-primary); box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb, 13,110,253), .15); }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--bs-border-color); }
