/* =========================================================================
   MonarchRP Admin — sign-in screen. Sleek, minimal, dark glassmorphism.
   No animated/colour gradients: a calm near-black field with one soft glow.
   ========================================================================= */
body.auth {
    min-height: 100vh;
    background:
        radial-gradient(90% 70% at 50% -20%, rgba(40, 62, 120, 0.16), transparent 60%),
        radial-gradient(70% 60% at 50% 120%, rgba(217, 183, 104, 0.05), transparent 60%),
        #05070f;
    display: grid;
    place-items: center;
    padding: 24px;
}

/* faint static texture / depth — sits behind the card */
.auth-aura {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(420px 420px at 28% 30%, rgba(27, 58, 143, 0.10), transparent 70%),
        radial-gradient(380px 380px at 75% 72%, rgba(200, 16, 46, 0.06), transparent 70%);
    filter: blur(6px);
}
.auth-noise {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
    box-shadow: inset 0 0 260px rgba(0, 0, 0, 0.75);
}

/* ----- The card ----- */
.login {
    position: relative;
    z-index: 1;
    width: min(396px, 94vw);
    padding: 42px 38px 36px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(40px) saturate(135%);
    -webkit-backdrop-filter: blur(40px) saturate(135%);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    animation: login-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes login-in {
    from { opacity: 0; transform: translateY(16px) scale(0.99); }
    to   { opacity: 1; transform: none; }
}

.login-head { text-align: center; margin-bottom: 30px; }
.login-head h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #f3f6ff;
}
.login-head h1 b {
    color: var(--gold-bright);
    font-weight: 800;
}
.login-head .sub {
    margin-top: 9px;
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(223, 230, 250, 0.4);
}

/* ----- Fields with leading icon ----- */
.fld { position: relative; margin-bottom: 14px; }
.fld .ico {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; opacity: 0.5; pointer-events: none;
}
.fld .ico path, .fld .ico circle, .fld .ico rect { stroke: #cdd6f4; }
.fld input {
    width: 100%;
    font-size: 14.5px;
    color: #eef2ff;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 14px 14px 14px 44px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.fld input::placeholder { color: rgba(223, 230, 250, 0.32); }
.fld input:focus {
    border-color: rgba(244, 220, 160, 0.55);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 0 0 3px rgba(217, 183, 104, 0.14);
}
.fld:focus-within .ico { opacity: 0.85; }

/* ----- OTP field ----- */
.otp-field input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 14px;
    padding-left: 14px;
    font-family: ui-monospace, Consolas, monospace;
}

/* ----- Button (solid, gradient-free) ----- */
.btn-signin {
    width: 100%;
    margin-top: 8px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 13px;
    color: #f6efdc;
    background: rgba(244, 220, 160, 0.10);
    border: 1px solid rgba(244, 220, 160, 0.45);
    transition: background .18s, border-color .18s, transform .05s;
}
.btn-signin:hover { background: rgba(244, 220, 160, 0.18); border-color: rgba(244, 220, 160, 0.7); }
.btn-signin:active { transform: translateY(1px); }

/* ----- Misc ----- */
.login-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px; margin-bottom: 20px;
    font-size: 13.5px; line-height: 1.4;
    color: #f3c0c0;
    background: rgba(240, 100, 100, 0.10);
    border: 1px solid rgba(240, 100, 100, 0.28);
}
.login-alert svg { flex: 0 0 auto; }
.login-link {
    display: block; text-align: center; margin-top: 22px;
    font-size: 13px; color: rgba(223, 230, 250, 0.5);
    text-decoration: none;
}
.login-link:hover { color: var(--gold-bright); }
.login-foot {
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center; font-size: 11px; letter-spacing: 1px;
    color: rgba(223, 230, 250, 0.3);
}
