:root {
    --c8-bg: #050505;
    --c8-ink: #f8f8f8;
    --c8-muted: rgba(255, 255, 255, .58);
    --c8-line: rgba(255, 255, 255, .16);
    --c8-glass: rgba(15, 15, 17, .62);
    --c8-field: rgba(255, 255, 255, .065);
    --c8-design: #b6ff00;
    --c8-focus: #e94183;
    --c8-brand: #ffd500;
    --c8-motion: #e72e2a;
    --c8-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --c8-mono: "SFMono-Regular", "SF Mono", Consolas, monospace;
}

html,
body.login {
    min-height: 100%;
    background: var(--c8-bg);
}

body.login.c8-login-page {
    display: grid;
    min-height: 100vh;
    min-width: 320px;
    place-items: center;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -12%, rgba(255, 255, 255, .14), transparent 28%),
        radial-gradient(circle at 28% 20%, rgba(233, 65, 131, .12), transparent 26%),
        radial-gradient(circle at 74% 24%, rgba(255, 213, 0, .11), transparent 25%),
        radial-gradient(circle at 50% 88%, rgba(182, 255, 0, .08), transparent 30%),
        linear-gradient(180deg, #0a0a0b 0%, #050505 64%, #030303 100%);
    color: var(--c8-ink);
    font-family: var(--c8-body);
    line-height: 1.25;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.login.c8-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .07), transparent 32%, rgba(255, 255, 255, .035) 64%, transparent),
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .08), transparent 34%);
    opacity: .72;
}

body.login.c8-login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .38) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
}

.c8-login-page #login {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(620px, calc(100vw - 32px)) !important;
    max-width: min(620px, calc(100vw - 32px)) !important;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: clamp(28px, 7vh, 56px) 0;
}

.c8-login-page #login h1 {
    width: 100%;
    margin: 0 0 26px;
    text-align: center;
}

.c8-login-page #login h1 a {
    display: block;
    width: clamp(94px, 26vw, 134px);
    height: clamp(94px, 26vw, 134px);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    background-image: url("../img/cs-max.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow:
        0 20px 70px rgba(0, 0, 0, .46),
        0 0 46px rgba(255, 213, 0, .08);
    text-indent: -9999px;
}

.c8-login-page #loginform,
.c8-login-page #lostpasswordform,
.c8-login-page #registerform {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0;
    padding: 28px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(var(--c8-glass), var(--c8-glass)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .09) 38%, rgba(182, 255, 0, .18) 56%, rgba(233, 65, 131, .18) 74%, rgba(255, 213, 0, .22)) border-box;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .52),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(28px) saturate(1.18);
}

.c8-login-page #loginform::before,
.c8-login-page #lostpasswordform::before,
.c8-login-page #registerform::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 23px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .09), transparent 48%);
    pointer-events: none;
}

.c8-login-page .message,
.c8-login-page #login_error,
.c8-login-page .success {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 16px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .74);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.35;
}

.c8-login-page.login-action-lostpassword .message {
    max-width: 560px;
    margin: 0 auto 22px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    box-shadow: none;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.c8-login-page #login_error {
    border-color: rgba(231, 46, 42, .42);
}

.c8-login-page form p {
    margin-bottom: 18px;
}

.c8-login-page form label {
    color: rgba(255, 255, 255, .66);
    font-family: var(--c8-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.c8-login-page form .input,
.c8-login-page input[type="text"],
.c8-login-page input[type="password"],
.c8-login-page input[type="email"] {
    width: 100%;
    min-height: 54px;
    margin-top: 9px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
    color: var(--c8-ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 1px 0 rgba(255, 255, 255, .04);
    font-family: var(--c8-body);
    font-size: 17px;
    line-height: 1.2;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.c8-login-page .user-pass-wrap .wp-pwd {
    position: relative;
}

.c8-login-page .user-pass-wrap .input.password-input {
    padding-right: 52px;
}

.c8-login-page form .input:focus,
.c8-login-page input[type="text"]:focus,
.c8-login-page input[type="password"]:focus,
.c8-login-page input[type="email"]:focus {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .09);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .055),
        0 0 0 1px rgba(182, 255, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

.c8-login-page .button.wp-hide-pw {
    position: absolute;
    top: 9px;
    right: 8px;
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 54px;
    min-height: 54px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .58);
    line-height: 1;
}

.c8-login-page .button.wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

.c8-login-page .button.wp-hide-pw:hover,
.c8-login-page .button.wp-hide-pw:focus {
    color: var(--c8-ink);
    box-shadow: none;
    outline: none;
}

.c8-login-page #loginform .forgetmenot {
    display: flex;
    min-height: 50px;
    align-items: center;
    float: left;
    margin: 0;
}

.c8-login-page #loginform .forgetmenot label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 13px;
    letter-spacing: .04em;
    line-height: 22px;
    text-transform: none;
    white-space: nowrap;
}

.c8-login-page #loginform input[type="checkbox"] {
    position: relative;
    display: inline-grid;
    width: 22px;
    min-width: 22px;
    height: 22px;
    place-items: center;
    flex: 0 0 22px;
    margin: 0 16px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 8px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
    vertical-align: middle;
}

.c8-login-page #loginform input[type="checkbox"]:checked::before {
    content: "";
    display: block;
    width: 6px;
    height: 10px;
    margin: -2px 0 0 0 !important;
    border: solid #050505;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.c8-login-page #loginform input[type="checkbox"]:checked {
    border-color: transparent !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62)) padding-box,
        linear-gradient(135deg, rgba(182, 255, 0, .82), rgba(233, 65, 131, .55), rgba(255, 213, 0, .72)) border-box;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .045),
        0 10px 22px rgba(0, 0, 0, .26),
        0 0 18px rgba(255, 213, 0, .1);
}

.c8-login-page #loginform input[type="checkbox"]:focus {
    border-color: rgba(255, 255, 255, .52) !important;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .055),
        0 10px 22px rgba(0, 0, 0, .24);
}

.c8-login-page #loginform input[type="checkbox"]:checked:focus {
    border-color: transparent !important;
}

.c8-login-page .submit {
    margin: 0;
}

.c8-login-page .wp-core-ui .button-primary,
.c8-login-page .button-primary {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(18, 18, 20, .95), rgba(7, 7, 8, .88)) padding-box,
        linear-gradient(115deg, rgba(255, 255, 255, .56), rgba(182, 255, 0, .46) 26%, rgba(255, 255, 255, .2) 43%, rgba(233, 65, 131, .34) 62%, rgba(255, 213, 0, .46) 82%, rgba(255, 255, 255, .34)) border-box !important;
    color: var(--c8-ink) !important;
    box-shadow:
        0 12px 34px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 -1px 0 rgba(255, 255, 255, .04);
    font-family: var(--c8-mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .11em;
    line-height: 48px;
    text-shadow: none;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.c8-login-page .wp-core-ui .button-primary:hover,
.c8-login-page .wp-core-ui .button-primary:focus,
.c8-login-page .wp-core-ui .button-primary:active,
.c8-login-page .wp-core-ui .button-primary.focus,
.c8-login-page .wp-core-ui .button-primary.hover,
.c8-login-page .button-primary:hover,
.c8-login-page .button-primary:focus,
.c8-login-page .button-primary:active,
.c8-login-page .button-primary.focus,
.c8-login-page .button-primary.hover {
    border-color: transparent !important;
    background:
        linear-gradient(180deg, rgba(25, 25, 27, .96), rgba(10, 10, 12, .9)) padding-box,
        linear-gradient(115deg, rgba(255, 255, 255, .64), rgba(182, 255, 0, .52) 26%, rgba(255, 255, 255, .24) 43%, rgba(233, 65, 131, .38) 62%, rgba(255, 213, 0, .5) 82%, rgba(255, 255, 255, .4)) border-box !important;
    color: var(--c8-ink) !important;
    box-shadow:
        0 16px 42px rgba(0, 0, 0, .42),
        0 0 24px rgba(255, 213, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .24),
        inset 0 -1px 0 rgba(255, 255, 255, .06);
    filter: brightness(1.04);
    outline: none !important;
    transform: translateY(-1px);
}

.c8-login-page #nav,
.c8-login-page #backtoblog,
.c8-login-page .privacy-policy-page-link {
    margin: 16px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    text-align: center;
}

.c8-login-page #nav a,
.c8-login-page #backtoblog a,
.c8-login-page .privacy-policy-page-link a {
    color: rgba(255, 255, 255, .54);
    text-decoration: none;
    transition: color .2s ease;
}

.c8-login-page #nav a:hover,
.c8-login-page #backtoblog a:hover,
.c8-login-page .privacy-policy-page-link a:hover {
    color: var(--c8-ink);
}

.c8-login-page .language-switcher {
    display: none;
}

@media (max-width: 420px) {
    .c8-login-page #login {
        width: min(100% - 24px, 390px) !important;
        max-width: min(100% - 24px, 390px) !important;
        padding: 22px 0;
    }

    .c8-login-page #login h1 {
        margin-bottom: 20px;
    }

    .c8-login-page #loginform,
    .c8-login-page #lostpasswordform,
    .c8-login-page #registerform {
        padding: 22px;
        border-radius: 21px;
    }

    .c8-login-page .forgetmenot,
    .c8-login-page .submit {
        float: none;
        width: 100%;
    }

    .c8-login-page .wp-core-ui .button-primary,
    .c8-login-page .button-primary {
        width: 100%;
        margin-top: 10px;
    }
}
