:root {
    --bbsl-bg-0: #060911;
    --bbsl-bg-1: #0b1020;
    --bbsl-panel: rgba(255, 255, 255, 0.075);
    --bbsl-panel-strong: rgba(255, 255, 255, 0.105);
    --bbsl-border: rgba(255, 255, 255, 0.14);
    --bbsl-text: rgba(255, 255, 255, 0.94);
    --bbsl-muted: rgba(255, 255, 255, 0.66);
    --bbsl-accent: #a855f7;
    --bbsl-accent-dark: #7e22ce;
    --bbsl-cyan: #22d3ee;
    --bbsl-radius: 18px;
    --bbsl-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

body.login {
    min-height: 100vh;
    background:
        radial-gradient(1000px 560px at 16% 8%, rgba(168, 85, 247, 0.30), transparent 58%),
        radial-gradient(1000px 620px at 84% 14%, rgba(34, 211, 238, 0.17), transparent 62%),
        radial-gradient(800px 480px at 70% 94%, rgba(52, 211, 153, 0.13), transparent 64%),
        linear-gradient(180deg, var(--bbsl-bg-0), var(--bbsl-bg-1));
    color: var(--bbsl-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 86%);
}

#login {
    width: min(390px, calc(100vw - 34px));
    padding: 5vh 0 36px;
}

.login h1 a {
    width: 100%;
    height: 104px;
    margin: 0 auto 14px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.52));
}

#loginform,
.bb-resend-form {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 23px 23px 20px;
    color: var(--bbsl-text);
    background: linear-gradient(180deg, var(--bbsl-panel-strong), var(--bbsl-panel));
    border: 1px solid var(--bbsl-border);
    border-radius: var(--bbsl-radius);
    box-shadow: var(--bbsl-shadow);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.bb-resend-form {
    margin-top: 14px;
    padding: 15px 22px;
    text-align: center;
}

.login form p {
    margin: 0 0 15px;
}

.login label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.login form .input,
.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 6px 0 0;
    padding: 10px 14px;
    color: #f3e8ff;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
    outline: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus {
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(168, 85, 247, 0.76);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#bitbrush_code {
    text-align: center;
    letter-spacing: 0.32em;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.bb-login-copy {
    margin: 0 0 18px !important;
    color: var(--bbsl-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.bb-login-copy strong {
    color: var(--bbsl-text);
}

.bb-field-help {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11.5px;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
}

.login .submit {
    margin: 20px 0 0 !important;
    padding: 0 !important;
}

.wp-core-ui .button-primary {
    width: 100%;
    min-height: 45px;
    padding: 8px 17px;
    color: #fff;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.98), rgba(126, 34, 206, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 15px 32px rgba(126, 34, 206, 0.35);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18px;
    text-shadow: none;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    color: #fff;
    background: linear-gradient(180deg, #b364f8, #8b31d8);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 19px 38px rgba(126, 34, 206, 0.43);
    transform: translateY(-1px);
}

.bb-resend-code-button {
    width: 100%;
    min-height: 42px;
    color: rgba(255, 255, 255, 0.83) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-weight: 750;
}

.bb-resend-code-button:hover,
.bb-resend-code-button:focus {
    color: #fff !important;
    background: rgba(168, 85, 247, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.62) !important;
}

.bb-resend-code-button[disabled] {
    cursor: not-allowed;
    opacity: 0.52;
}

.login #login_error,
.login .message,
.login .success,
.login p.message {
    margin: 0 0 15px !important;
    padding: 13px 15px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.07)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 3px solid var(--bbsl-accent) !important;
    border-radius: 13px !important;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42) !important;
    line-height: 1.5;
}

.login #login_error {
    border-left-color: #f87171 !important;
}

.login #login_error a,
.login .message a {
    color: #e9d5ff;
}

#nav,
#backtoblog,
.bb-login-switch {
    margin: 13px 0 0 !important;
    text-align: center;
}

#nav a,
#backtoblog a,
.bb-login-switch a {
    color: rgba(255, 255, 255, 0.70) !important;
    font-size: 12.5px;
    text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover,
.bb-login-switch a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.language-switcher {
    display: none;
}

.bbsl-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 480px) {
    #login {
        padding-top: 3.5vh;
    }

    .login h1 a {
        height: 88px;
    }

    #loginform,
    .bb-resend-form {
        padding-left: 19px;
        padding-right: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
