/* Account-entry pages only. The authenticated app keeps its existing theme. */
body.public-auth {
    background: #f5f7fc;
    color: #203158;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    padding: 36px 20px;
}
.public-auth .logo-alt-box { position: static; margin: 0 auto 28px; }
.public-auth .logo {
    color: #203158;
    font: 700 25px/1.3 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.6px;
}
.public-auth .logo .text-inverse { color: #203158 !important; }
.public-auth .logo .text-custom { color: #4b6db5 !important; }
.public-auth .wrapper-page { width: 100%; max-width: 460px; margin: 0 auto; }
.public-auth .card {
    max-width: none;
    margin: 0 0 24px !important;
    padding: 32px;
    background: #fff;
    border: 1px solid #d6deed;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(32, 49, 88, .05);
}
.public-auth .auth-heading { margin-bottom: 24px; text-align: left; }
.public-auth .auth-kicker {
    color: #4b6393;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.public-auth h1 { color: #203158; font: 700 30px/1.2 "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; margin: 0 0 12px; }
.public-auth .auth-intro { color: #52617b; margin: 0; }
.public-auth .auth-note { color: #52617b; font-size: 13px; margin: 16px 0 0; }
.public-auth .auth-main-login { display: inline-block; font-weight: 600; margin-top: 16px; }
.public-auth .p-2 { padding: 0 !important; }
.public-auth .form-horizontal { margin-top: 0 !important; }
.public-auth .form-group { margin: 0 0 20px; }
.public-auth .form-group > .col-12, .public-auth .form-group > .col-sm-12 { padding: 0; }
.public-auth label { display: block; font-weight: 600; margin-bottom: 7px; }
.public-auth .form-control {
    width: 100%;
    min-height: 46px;
    height: auto;
    border: 1px solid #bfcbe0;
    border-radius: 6px;
    box-shadow: none;
    color: #203158;
    font: inherit;
    padding: 10px 12px;
}
.public-auth .form-control::placeholder { color: #697990; opacity: 1; }
.public-auth .form-control[readonly] { background: #f3f6fb; }
.public-auth .form-control:focus { border-color: #4b6db5; box-shadow: 0 0 0 3px rgba(75, 109, 181, .15); }
.public-auth .btn-custom {
    min-height: 46px;
    background: #203158 !important;
    border: 1px solid #203158 !important;
    border-radius: 6px;
    color: #fff !important;
    font: 600 15px/1.5 "Segoe UI", Arial, sans-serif;
    padding: 10px 16px;
    text-transform: none !important;
}
.public-auth .btn-custom:hover { background: #304b80 !important; border-color: #304b80 !important; }
.public-auth a, .public-auth a.text-primary { color: #3e5d9e !important; text-underline-offset: 3px; }
.public-auth a:hover { text-decoration: underline; }
.public-auth a:focus-visible, .public-auth button:focus-visible, .public-auth input[type=checkbox]:focus-visible { outline: 3px solid #4b6db5 !important; outline-offset: 4px; }
/* Legacy CSS hides the native input and draws the checkbox on its label. */
.public-auth .checkbox input[type=checkbox]:focus-visible + label::before { outline: 3px solid #4b6db5 !important; outline-offset: 3px; }
.public-auth .text-muted { color: #52617b !important; }
.public-auth .text-danger { color: #a52a3b !important; overflow-wrap: anywhere; }
.public-auth .checkbox label { display: inline-block; font-weight: 400; }
.public-auth .auth-demo { border-top: 1px solid #d6deed; color: #52617b; font-size: 13px; margin-top: 20px; padding: 18px 0 0; }
.public-auth .help-recovery { margin-top: 20px; }
.public-auth .wrapper-page > .row p { font-size: 13px; margin-bottom: 14px; }
@media (max-width: 480px) {
    body.public-auth { padding: 24px 16px; }
    .public-auth .card { padding: 24px 18px; }
    .public-auth .logo-alt-box { margin-bottom: 22px; }
    .public-auth h1 { font-size: 27px; }
    .public-auth .g-recaptcha { display: flex !important; justify-content: center; }
}
