:root {
    --bg: #eef2fb;
    --surface: #ffffff;
    --text: #15213a;
    --muted: #73809a;
    --line: #e3e8f2;
    --primary: #526ee8;
    --primary-dark: #3d56c8;
    --danger: #d9485f;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 4%, rgba(82, 110, 232, .17), transparent 28rem),
        radial-gradient(circle at 96% 95%, rgba(33, 169, 128, .11), transparent 30rem),
        var(--bg);
    font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(430px, .92fr);
    width: min(1120px, calc(100% - 48px));
    min-height: 680px;
    margin: max(34px, calc((100vh - 680px) / 2)) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 75px rgba(35, 55, 101, .16);
}

.brand-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 46px 52px;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .22), transparent 9rem),
        linear-gradient(145deg, #4c68e2 0%, #3852c5 58%, #2b3e9e 100%);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    border: 34px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    content: "";
}

.brand-panel::before {
    right: -100px;
    bottom: -125px;
    width: 310px;
    height: 310px;
}

.brand-panel::after {
    top: 205px;
    left: -90px;
    width: 160px;
    height: 160px;
}

.login-brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand {
    position: relative;
    z-index: 1;
    width: fit-content;
    font-size: 20px;
    font-weight: 850;
}

.login-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--primary);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 31, 93, .22);
    font-size: 16px;
    font-weight: 900;
}

.brand-copy {
    position: relative;
    z-index: 1;
    margin: auto 0 58px;
}

.brand-kicker {
    margin: 0 0 16px;
    color: #ced7ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
}

.brand-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(35px, 4vw, 48px);
    line-height: 1.35;
    letter-spacing: -.04em;
}

.brand-copy > p:last-child {
    max-width: 430px;
    margin: 0;
    color: #e1e6ff;
    font-size: 14px;
    line-height: 1.9;
}

.brand-points {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #eef1ff;
    font-size: 11px;
}

.brand-points b { color: #cbd5ff; font-size: 9px; }

.login-panel {
    display: grid;
    padding: 56px;
    place-items: center;
}

.mobile-brand { display: none; }

.login-card { width: min(380px, 100%); }

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #4660d2;
    border: 1px solid #dce3ff;
    border-radius: 999px;
    background: #f3f5ff;
    font-size: 11px;
    font-weight: 750;
}

.security-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2bb67e;
    box-shadow: 0 0 0 4px rgba(43, 182, 126, .12);
}

.login-card h2 {
    margin: 22px 0 8px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.login-subtitle {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
}

.login-error {
    display: flex;
    margin-bottom: 22px;
    padding: 12px 14px;
    flex-direction: column;
    gap: 4px;
    color: #b42335;
    border: 1px solid #ffd5db;
    border-radius: 11px;
    background: #fff5f6;
    font-size: 12px;
}

.login-field { margin-bottom: 20px; }

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #33405a;
    font-size: 13px;
    font-weight: 750;
}

.login-control { position: relative; }

.field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #6e7b95;
    border-radius: 8px;
    background: #eef1f7;
    font-size: 10px;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-control input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 52px;
    color: var(--text);
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    outline: 0;
    background: #fafbfe;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-control input:hover { border-color: #cdd6e8; background: #fff; }

.login-control input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(82, 110, 232, .11);
}

.login-submit {
    display: flex;
    width: 100%;
    height: 50px;
    margin-top: 28px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #667ef0);
    box-shadow: 0 12px 24px rgba(82, 110, 232, .24);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(82, 110, 232, .31);
}

.login-note {
    margin: 20px 0 0;
    color: #8b96aa;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 880px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(560px, calc(100% - 28px));
        min-height: 0;
        margin: 22px auto;
    }
    .brand-panel { display: none; }
    .login-panel { padding: 34px 28px 42px; }
    .mobile-brand { display: flex; align-self: start; width: 100%; margin-bottom: 45px; }
}

@media (max-width: 460px) {
    .login-panel { padding: 26px 20px 34px; }
    .mobile-brand { margin-bottom: 36px; }
    .login-card h2 { font-size: 29px; }
}
