* {
    box-sizing: border-box;
}

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

body {
    background: #111;
    color: #f6f6f6;
    font-family: Arial, Helvetica, sans-serif;
}

.login-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 196, 147, 0.12), transparent 29%),
        radial-gradient(circle at 82% 20%, rgba(157, 193, 255, 0.1), transparent 31%),
        #111;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 420px);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(18, 18, 20, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-brand {
    color: rgba(255, 255, 255, 0.9);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.login-kicker {
    margin-top: 48px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    letter-spacing: 0.14em;
}

.login-card h1 {
    margin-top: 9px;
    font-size: clamp(30px, 7vw, 42px);
    font-weight: 600;
    letter-spacing: -0.05em;
}

.login-intro {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.6;
}

.login-form,
.reset-form {
    display: grid;
    gap: 8px;
}

.login-form {
    margin-top: 28px;
}

.login-form label,
.reset-form label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}

.login-form input,
.reset-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 13px;
}

.login-form input:focus,
.reset-form input:focus {
    border-color: rgba(184, 226, 202, 0.55);
    box-shadow: 0 0 0 3px rgba(184, 226, 202, 0.1);
}

.login-submit,
.reset-submit {
    min-height: 44px;
    border: 1px solid rgba(184, 226, 202, 0.3);
    border-radius: 9px;
    background: rgba(184, 226, 202, 0.11);
    color: #d6f0df;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.login-submit:hover,
.reset-submit:hover {
    border-color: rgba(184, 226, 202, 0.6);
    background: rgba(184, 226, 202, 0.18);
}

.login-message {
    min-height: 16px;
    margin: 2px 0;
    color: #ffb8aa;
    font-size: 11px;
    line-height: 1.45;
}

.login-message.is-success {
    color: #b8e2ca;
}

.reset-panel {
    margin-top: 27px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.reset-panel summary {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    cursor: pointer;
}

.reset-panel > p {
    margin: 13px 0 15px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    line-height: 1.55;
}

.reset-form {
    gap: 7px;
}

.reset-submit {
    min-height: 39px;
    margin-top: 3px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.72);
}

.login-footer {
    position: fixed;
    right: 24px;
    bottom: 17px;
    left: 24px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-shell {
        padding: 15px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .login-kicker {
        margin-top: 38px;
    }
}
