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

body.login {
    margin: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 203, 111, 0.34), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(88, 135, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #f7f0e7 0%, #f8faf7 44%, #e8f0f7 100%);
    color: #1d2632;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(29, 38, 50, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(29, 38, 50, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.56), transparent 72%);
    pointer-events: none;
}

.xlt-login-stage {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 56px);
    margin: 28px auto;
    display: grid;
    grid-template-columns: minmax(360px, 1.06fr) minmax(360px, 0.84fr);
    overflow: hidden;
    border: 1px solid rgba(29, 38, 50, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 32px 90px rgba(30, 44, 63, 0.16);
    backdrop-filter: blur(18px);
}

.xlt-login-story {
    position: relative;
    min-height: 640px;
    padding: clamp(42px, 6vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 31, 42, 0.08), rgba(20, 31, 42, 0.72)),
        url("../img/ai-wisdom-hero.png") center / cover no-repeat;
}

.xlt-login-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 16, 26, 0.18), rgba(211, 151, 72, 0.18));
    pointer-events: none;
}

.xlt-login-story > * {
    position: relative;
    z-index: 1;
}

.xlt-login-eyebrow {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xlt-login-story h2 {
    max-width: 580px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.xlt-login-story p {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.xlt-login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.xlt-login-points span {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
}

.xlt-login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
}

body.login div#login {
    width: min(100%, 430px);
    padding: 0;
}

body.login h1 {
    margin: 0 0 24px;
}

body.login h1 a {
    position: relative;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 0 0 54px;
    display: flex;
    align-items: center;
    min-height: 44px;
    background: none;
    color: #1b2632;
    text-indent: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

body.login h1 a::before {
    content: "学";
    position: absolute;
    margin-left: -54px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #1b2632;
    color: #f4d58a;
    font-size: 20px;
}

.xlt-login-intro {
    margin: 0 0 18px;
    color: #647081;
    font-size: 15px;
}

body.login form {
    margin-top: 0;
    padding: 30px;
    border: 1px solid rgba(29, 38, 50, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 56px rgba(31, 46, 61, 0.12);
}

body.login label {
    color: #263342;
    font-size: 14px;
    font-weight: 700;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
    box-sizing: border-box;
    min-height: 50px;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(29, 38, 50, 0.14);
    border-radius: 14px;
    background: #f8faf9;
    color: #17212d;
    font-size: 17px;
    box-shadow: none;
}

body.login form .input:focus {
    border-color: #bd8a42;
    box-shadow: 0 0 0 4px rgba(189, 138, 66, 0.16);
    outline: none;
}

body.login .forgetmenot {
    display: flex;
    align-items: center;
    min-height: 36px;
}

body.login .forgetmenot label {
    font-weight: 600;
    color: #5f6d7d;
}

body.login .button.wp-hide-pw {
    color: #6c5a3a;
}

body.login .button-primary {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #1b2632;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(27, 38, 50, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
    background: #bd8a42;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(189, 138, 66, 0.28);
}

body.login #nav,
body.login #backtoblog {
    margin: 18px 0 0;
    padding: 0;
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
    color: #4c5d70;
    font-weight: 700;
    text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
    color: #bd8a42;
}

body.login .message,
body.login .notice,
body.login #login_error {
    border-left-color: #bd8a42;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(31, 46, 61, 0.1);
}

body.login .language-switcher {
    position: relative;
    z-index: 2;
    margin-top: -78px;
}

@media (max-width: 900px) {
    .xlt-login-stage {
        width: min(100% - 24px, 560px);
        min-height: auto;
        grid-template-columns: 1fr;
        margin: 12px auto 96px;
        border-radius: 24px;
    }

    .xlt-login-story {
        min-height: 320px;
        padding: 34px 28px;
    }

    .xlt-login-story h2 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .xlt-login-story p {
        font-size: 16px;
    }

    .xlt-login-form-wrap {
        padding: 30px 22px 34px;
    }

    body.login form {
        padding: 24px;
    }

    body.login .language-switcher {
        margin-top: -76px;
    }
}

@media (max-width: 480px) {
    body.login {
        background: #f7f3eb;
    }

    .xlt-login-stage {
        width: 100%;
        margin: 0 0 90px;
        border-width: 0 0 1px;
        border-radius: 0 0 22px 22px;
    }

    .xlt-login-story {
        min-height: 260px;
    }

    .xlt-login-points {
        display: none;
    }
}
