/* Authentication pages follow the same Metronic background, logo placement, white card and primary button theme as Maintenance.php. */
.auth-page {
  min-height: 100vh;
  background-image: url('assets/media/auth/bg4.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
[data-bs-theme="dark"] .auth-page { background-image: url('assets/media/auth/bg4-dark.jpg'); }
.auth-layout { min-height: 100vh; }
.auth-logo-panel { flex: 1 1 50%; }
.auth-main-logo { display: block; width: min(400px, 100%); max-height: 150px; object-fit: contain; }
.auth-card-panel { flex: 0 1 auto; align-items: center; }
.auth-card { width: 100%; min-width: 450px; max-width: 580px; min-height: 520px; }
.auth-card-logo { display: block; width: 200px; max-height: 90px; object-fit: contain; }
.auth-form-wrap { max-width: 420px; margin: 0 auto; }
.auth-form .form-control { min-height: 48px; }
.auth-submit { min-height: 48px; }
.auth-register-layout .auth-logo-panel { flex-basis: 38%; }
.auth-register-card-panel { flex: 1 1 62%; }
.auth-register-card { min-width: min(650px, 100%); max-width: 850px; min-height: 0; }
.auth-register-wrap { max-width: 760px; }
.auth-register-wrap .card-header { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: calc(1.3rem + .6vw); }
.auth-register-body { width: 100%; padding: 0 !important; }
.auth-register-body form { width: 100%; }
.auth-register-body .row { margin-right: 0; margin-left: 0; }
.auth-register-body .form-group, .auth-register-body .fv-row { margin-bottom: 14px; }
.auth-register-body label, .auth-register-body .form-label, .auth-register-body .col-form-label { font-weight: 600; }
.auth-register-body input.form-control, .auth-register-body select.form-control, .auth-register-body select, .auth-register-body textarea { min-height: 42px; }
.auth-register-body button[type="submit"], .auth-register-body input[type="submit"], .auth-register-body .btn-primary { min-height: 46px; }
@media (max-width: 991.98px) {
  .auth-page { padding: 20px 0; }
  .auth-layout { flex-direction: column !important; }
  .auth-logo-panel { flex: none; justify-content: center; padding: 18px 20px 10px !important; }
  .auth-logo-panel > div { align-items: center !important; }
  .auth-main-logo { width: min(280px, 78vw); max-height: 100px; }
  .auth-card-panel { padding: 20px !important; justify-content: center !important; }
  .auth-card { min-width: 0; width: min(100%, 580px); min-height: 0; }
  .auth-register-card { width: 100%; max-width: 850px; }
  .auth-register-layout .auth-logo-panel, .auth-register-card-panel { flex-basis: auto; }
}
@media (max-width: 575.98px) {
  .auth-card { padding: 28px 20px !important; }
  .auth-card-logo { width: 170px; }
  .auth-register-card { padding: 24px 16px !important; }
  .auth-register-body .col-md-4, .auth-register-body .col-md-6 { width: 100%; }
}

/* Richer Greeonix styling while retaining the Maintenance page's Metronic layout and bg4 background. */
.auth-page { position: relative; isolation: isolate; overflow-x: hidden; }
.auth-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 12% 20%, rgba(225, 170, 47, .16), transparent 36%), radial-gradient(ellipse at 86% 82%, rgba(20, 105, 73, .16), transparent 38%), linear-gradient(120deg, rgba(255,255,255,.25), rgba(255,255,255,.04)); }
.auth-logo-panel { position: relative; }
.auth-logo-panel::before { content: ""; position: absolute; width: min(40vw, 470px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.07), 0 0 0 58px rgba(255,255,255,.045); pointer-events: none; }
.auth-logo-panel > div { position: relative; z-index: 1; padding: 42px 30px; border-radius: 28px; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 22px 70px rgba(24,54,67,.10); backdrop-filter: blur(8px); }
.auth-main-logo { width: min(400px, 100%); filter: drop-shadow(0 8px 12px rgba(30,50,20,.10)); }
.auth-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.88); box-shadow: 0 28px 90px rgba(19,42,58,.18), 0 5px 18px rgba(19,42,58,.06); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #d9a329 0%, #1e7b4b 48%, #0e4d7c 100%); }
.auth-card > div { position: relative; z-index: 1; }
.auth-card-logo { margin-bottom: 4px; }
.auth-form-wrap .text-center.mb-8 { margin-bottom: 2rem !important; }
.auth-form-wrap h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); letter-spacing: -.045em; font-weight: 750; }
.auth-form-wrap h1::after { content: ""; display: block; width: 48px; height: 4px; margin: 13px auto 0; border-radius: 5px; background: linear-gradient(90deg, #d9a329, #278052); }
.auth-form-wrap .text-gray-500 { line-height: 1.7; }
.auth-form .form-control { border: 1px solid #e7ebef; border-radius: 12px; background-color: #f7f9fb; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.auth-form .form-control:focus { background: #fff; border-color: #1b7952; box-shadow: 0 0 0 4px rgba(27,121,82,.10); }
.auth-form .form-label { margin-bottom: 9px; }
.auth-submit { position: relative; overflow: hidden; border: 0; border-radius: 11px; background: linear-gradient(110deg, #0e4d7c, #176e61); box-shadow: 0 9px 20px rgba(14,77,124,.19); transition: transform .18s ease, box-shadow .18s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(14,77,124,.24); }
.auth-form-wrap a.link-primary { font-weight: 600; text-decoration: none; }
.auth-form-wrap a.link-primary:hover { color: #1e7b4b !important; text-decoration: underline; }
.auth-register-card { border-top: 6px solid #1e7b4b; }
.auth-register-wrap .card-header { color: #18364a; font-weight: 750; letter-spacing: -.03em; }
.auth-register-body input.form-control, .auth-register-body select.form-control, .auth-register-body select, .auth-register-body textarea { border-radius: 10px; border-color: #e2e8ed; background-color: #f8fafb; }
.auth-register-body input.form-control:focus, .auth-register-body select:focus, .auth-register-body textarea:focus { border-color: #1e7b4b; box-shadow: 0 0 0 3px rgba(30,123,75,.10); }
.auth-register-body .btn-primary { border: 0; border-radius: 10px; background: linear-gradient(110deg, #0e4d7c, #176e61); box-shadow: 0 8px 18px rgba(14,77,124,.16); }
@media (max-width: 991.98px) {
  .auth-page::before { position: absolute; }
  .auth-logo-panel::before { width: 230px; }
  .auth-logo-panel > div { padding: 18px 22px; border-radius: 20px; background: rgba(255,255,255,.36); box-shadow: 0 12px 35px rgba(24,54,67,.07); }
  .auth-card { box-shadow: 0 18px 55px rgba(19,42,58,.16); }
}
@media (max-width: 575.98px) {
  .auth-logo-panel { padding-bottom: 18px !important; }
  .auth-logo-panel > div { padding: 12px 18px; }
  .auth-card { border-radius: 22px !important; }
  .auth-card::before { height: 5px; }
  .auth-form-wrap h1 { font-size: 1.85rem; }
}
