:root {
    --navy: #172f4b;
    --navy-deep: #10283f;
    --gold: #b78a3a;
    --gold-light: #c99b48;
    --ink: #242931;
    --muted: #747982;
    --line: rgba(23, 47, 75, .20);
    --danger: #9b4038;
    --success: #326a4c;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--ink);
    background: #e9e5df;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page {
    position: relative;
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 28px 20px 34px;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(249, 247, 243, .78), rgba(226, 222, 214, .55)),
        url("../../../assets/admin-login-bg.png") center / cover no-repeat;
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(780px, 90vw);
    aspect-ratio: 1;
    border: 1px solid rgba(23, 47, 75, .07);
    border-radius: 50%;
}
.login-page::before { top: -54%; left: -18%; }
.login-page::after { right: -28%; bottom: -62%; }

.login-card {
    width: min(510px, 100%);
    padding: 29px 48px 33px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 15px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 20px 54px rgba(34, 38, 43, .15);
    backdrop-filter: blur(12px);
    text-align: center;
}

.login-card-secondary { width: min(550px, 100%); }

.brand-logo {
    display: block;
    width: min(100%, 300px);
    max-height: 105px;
    margin: 0 auto 17px;
    object-fit: contain;
}

.login-heading { margin-bottom: 24px; }
.gold-rule { display: block; width: 48px; height: 1px; margin: 0 auto 14px; background: var(--gold); }
.login-kicker { margin: 0 0 6px; color: #916727; font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }

h1 {
    margin: 0;
    color: var(--navy);
    font: 500 clamp(24px, 4vw, 29px)/1.18 Georgia, "Times New Roman", serif;
    letter-spacing: .01em;
}

.subtitle { margin: 7px 0 0; color: #5e646c; font-size: 13px; line-height: 1.45; }

.alert {
    margin: 0 0 19px;
    padding: 11px 13px;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { color: var(--danger); background: #fff5f4; }
.alert-success { color: var(--success); background: #f1f8f3; }
.alert-info { color: #4f6274; border-color: #bfd0de; background: #eef4f8; }

.form-group { margin-bottom: 16px; text-align: left; }
label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.input-wrap { position: relative; }

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    color: #7d838b;
    pointer-events: none;
}

input {
    width: 100%;
    min-height: 51px;
    padding: 0 47px 0 47px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
    font: 14px "Segoe UI", Arial, sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(183, 138, 58, .12); }
.toggle-password { position: absolute; right: 7px; top: 50%; width: 37px; height: 37px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #7d838b; cursor: pointer; }
.toggle-password:hover { background: #f3efe8; color: var(--navy); }
.toggle-password svg { width: 21px; height: 21px; }

.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; text-align: left; }
.password-match { min-height: 16px; margin: -4px 0 8px; font-size: 10px; text-align: left; }
.password-match.is-error { color: var(--danger); }
.password-match.is-valid { color: var(--success); }

.submit-button {
    width: 100%;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 5px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #ae7e32, var(--gold-light));
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(183, 138, 58, .19);
    transition: transform .2s, filter .2s;
}
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.035); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.submit-button strong { font-size: 22px; font-weight: 400; line-height: 1; }

.forgot, .back-link { display: inline-block; margin-top: 19px; color: var(--navy); font-size: 12px; text-decoration: none; }
.forgot:hover, .back-link:hover { color: #8c6327; text-decoration: underline; }
.login-security-note { margin-top: 16px; padding: 9px 11px; border-radius: 5px; background: #f3f1ed; color: var(--muted); font-size: 10px; line-height: 1.45; }

.logout-inline { margin-top: 17px; }
.logout-inline button { padding: 0; border: 0; background: transparent; color: var(--navy); font-size: 12px; text-decoration: underline; cursor: pointer; }

.reserved-footer {
    min-height: 78px;
    display: grid;
    place-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(23, 47, 75, .08);
    background: #faf9f7;
    color: #4a4e54;
    text-align: center;
}
.reserved-footer svg { display: block; width: 25px; height: 25px; margin: 0 auto 5px; color: var(--gold); }
.reserved-footer p { margin: 0; font-size: 11px; }

@media (max-height: 760px) and (min-width: 641px) {
    .login-page { padding-block: 18px; }
    .login-card { padding-block: 23px 26px; }
    .brand-logo { width: 250px; max-height: 82px; margin-bottom: 12px; }
    .login-heading { margin-bottom: 18px; }
    .form-group { margin-bottom: 13px; }
}

@media (max-width: 640px) {
    .login-page { min-height: calc(100vh - 65px); padding: 16px 12px 22px; }
    .login-card { padding: 24px 18px 27px; border-radius: 12px; }
    .brand-logo { width: 245px; max-height: 88px; }
    h1 { font-size: 23px; }
    input { min-height: 49px; font-size: 13px; }
    .submit-button { min-height: 51px; font-size: 12px; }
    .reserved-footer { min-height: 65px; }
}

