html,
body {
    min-height: 100%;
}

.auth-shell {
    min-height: 100dvh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 30px 18px;
    overflow: hidden;
    color: #e9edef;
    background:
        linear-gradient(rgba(0, 0, 0, .44), rgba(0, 0, 0, .64)),
        url('/images/ninja-panel-bg.png') center / cover fixed,
        #030708;
}

.auth-shell-glow {
    width: 680px;
    height: 680px;
    position: fixed;
    left: 50%;
    top: 50%;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 24, .10), transparent 68%);
    transform: translate(-50%, -50%);
}

.auth-content {
    width: min(100%, 470px);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    padding: 28px 30px 30px;
    border: 1px solid rgba(255, 207, 47, .58);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 196, 24, .055), transparent 35%),
        linear-gradient(180deg, rgba(6, 12, 14, .96), rgba(3, 8, 10, .94));
    box-shadow:
        0 24px 65px rgba(0, 0, 0, .52),
        inset 0 0 0 1px rgba(255, 255, 255, .015),
        0 0 32px rgba(255, 192, 0, .045);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-card-wide {
    width: min(100%, 540px);
    margin-inline: auto;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin: -6px 0 8px;
}

.auth-brand img {
    width: min(210px, 65%);
    height: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 196, 27, .12));
}

.auth-eyebrow {
    margin-top: 2px;
    color: #d7b83d;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-align: center;
}

.auth-title {
    margin: 7px 0 0;
    color: #f6dc6a;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .74), 0 0 14px rgba(255, 203, 33, .08);
}

.auth-subtitle {
    max-width: 410px;
    margin: 10px auto 0;
    color: #9ba5aa;
    font-size: .82rem;
    line-height: 1.45;
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field > span {
    color: #c8d0d3;
    font-size: .76rem;
    font-weight: 750;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(255, 209, 52, .28);
    border-radius: 9px;
    outline: 0;
    color: #edf1f2;
    background: rgba(2, 7, 9, .88);
    font: inherit;
    font-size: .9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .01);
    transition: .16s ease;
}

.auth-field input:focus {
    border-color: rgba(255, 221, 83, .82);
    box-shadow: 0 0 0 3px rgba(255, 204, 39, .06), 0 0 16px rgba(255, 194, 20, .04);
}

.auth-primary-button,
.auth-primary-link {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #ffe36d;
    border-radius: 9px;
    color: #171205;
    background: linear-gradient(180deg, #ffec8a 0%, #ffd94e 58%, #e4ae19 100%);
    font: inherit;
    font-size: .87rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(255, 194, 22, .12), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.auth-primary-button:hover,
.auth-primary-link:hover {
    color: #171205;
    filter: brightness(1.035);
}

.auth-help-link {
    display: block;
    margin-top: 15px;
    color: #ceb94e;
    font-size: .76rem;
    text-align: center;
    text-decoration: none;
}

.auth-help-link:hover {
    color: #ffe06a;
}

.auth-alert {
    margin-top: 17px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: .75rem;
    line-height: 1.35;
}

.auth-alert-error {
    border: 1px solid rgba(255, 97, 82, .42);
    color: #ffc0b8;
    background: rgba(41, 10, 7, .72);
}

.auth-alert-success {
    border: 1px solid rgba(85, 226, 139, .36);
    color: #b9f3d2;
    background: rgba(5, 31, 18, .68);
}

.auth-hint {
    margin-top: -3px;
    color: #788389;
    font-size: .69rem;
    line-height: 1.35;
}

.auth-recovery-block {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 207, 47, .19);
    border-radius: 9px;
    background: rgba(1, 6, 8, .72);
}

.auth-recovery-block span {
    color: #8f9a9f;
    font-size: .7rem;
}

.auth-recovery-block code {
    color: #efd04d;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.auth-recovery-note {
    margin: 14px 0 18px;
    color: #8f999e;
    font-size: .72rem;
    line-height: 1.45;
}

.auth-recovery-note strong {
    color: #e8cc58;
}

@media (max-width: 520px) {
    .auth-shell {
        align-items: start;
        padding: 84px 12px 24px;
    }

    .auth-card {
        padding: 22px 17px 20px;
        border-radius: 15px;
    }

    .auth-brand img {
        width: 170px;
    }

    .auth-title {
        font-size: 1.65rem;
    }

    .auth-subtitle {
        font-size: .75rem;
    }
}
