:root {
    --navy: #111d35;
    --navy-light: #1b2b4a;
    --accent: #ff7051;
    --accent-dark: #eb5a3d;
    --ink: #172239;
    --muted: #768198;
    --line: #e6ebf3;
    --canvas: #f4f7fb;
    --mint: #20b68f;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(500px, 1.15fr) minmax(440px, 0.85fr);
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 42px 54px 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 72% 18%, rgba(58, 126, 209, 0.23), transparent 31%),
        linear-gradient(145deg, #172742 0%, var(--navy) 63%, #0c1629 100%);
}

.visual-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.glow-one {
    top: -150px;
    right: -130px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 112, 81, 0.15), transparent 70%);
}

.glow-two {
    bottom: 70px;
    left: -190px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(63, 122, 204, 0.14), transparent 70%);
}

.visual-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.visual-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--accent), #ffa16d);
    box-shadow: 0 10px 28px rgba(255, 112, 81, 0.24);
}

.visual-logo svg {
    width: 29px;
    height: 29px;
}

.visual-brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.1px;
}

.visual-brand span {
    display: block;
    margin-top: 2px;
    color: #8190a8;
    font-size: 11px;
}

.visual-copy {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: auto;
    margin-bottom: 34px;
}

.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #f59b83;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.visual-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.18;
    letter-spacing: -2.4px;
}

.visual-copy p {
    max-width: 480px;
    margin: 0;
    color: #9eacc2;
    font-size: 14px;
    line-height: 1.9;
}

.visual-dashboard {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    margin-bottom: 46px;
    padding: 18px 20px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c9d3e3;
    font-size: 11px;
    font-weight: 600;
}

.mini-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #68d6b7;
    font-size: 9px;
}

.mini-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #54d5ae;
    box-shadow: 0 0 0 4px rgba(84, 213, 174, 0.1);
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.mini-metrics div {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.mini-metrics span,
.mini-metrics small {
    display: block;
    color: #7f8fa8;
    font-size: 9px;
}

.mini-metrics strong {
    display: block;
    margin: 6px 0;
    color: #ffffff;
    font-size: 18px;
}

.mini-metrics small {
    color: #55d0ab;
}

.mini-chart {
    height: 112px;
    margin-top: 7px;
}

.mini-chart svg {
    width: 100%;
    height: 100%;
}

.visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    color: #65748d;
    font-size: 9px;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
    background:
        radial-gradient(circle at 100% 0%, rgba(80, 125, 200, 0.06), transparent 30%),
        #fafbfd;
}

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

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.mobile-brand .visual-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.mobile-brand strong {
    color: var(--navy);
    font-size: 16px;
}

.login-heading {
    margin-bottom: 32px;
}

.security-badge {
    display: inline-flex;
    height: 27px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    color: #168564;
    border: 1px solid #d2eee5;
    border-radius: 20px;
    background: #f0fbf7;
    font-size: 9px;
    font-weight: 600;
}

.security-badge svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-heading h2 {
    margin: 18px 0 7px;
    color: #151f33;
    font-size: 28px;
    letter-spacing: -0.7px;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.login-label {
    display: block;
    margin: 18px 0 8px;
    color: #4f5c72;
    font-size: 11px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.form-field {
    min-width: 0;
}

.form-field .login-label {
    margin-top: 0;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 11px;
    color: #263248;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #ffffff;
    font-size: 12px;
}

.form-control:focus {
    border-color: #f4ab9a;
    box-shadow: 0 0 0 4px rgba(255, 112, 81, 0.08);
}

.input-wrap {
    position: relative;
    display: flex;
    height: 48px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
    border-color: #f4ab9a;
    box-shadow: 0 0 0 4px rgba(255, 112, 81, 0.08);
}

.input-icon {
    display: grid;
    width: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #9aa4b5;
}

.input-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.country-code {
    padding-right: 12px;
    color: #4d5b71;
    border-right: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    color: #202b3f;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.input-wrap input::placeholder {
    color: #adb5c2;
}

.code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    gap: 10px;
}

.send-code {
    height: 48px;
    color: var(--accent);
    border: 1px solid #ffd4ca;
    border-radius: 11px;
    background: #fff6f3;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.send-code:hover:not(:disabled) {
    background: #ffede8;
}

.send-code:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.form-message {
    min-height: 20px;
    padding-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.form-message.error {
    color: #dc5660;
}

.form-message.success {
    color: #168564;
}

.register-prompt {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.register-prompt a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.login-submit {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff795a, #ed5b3e);
    box-shadow: 0 10px 24px rgba(236, 89, 60, 0.2);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover:not(:disabled) {
    box-shadow: 0 13px 28px rgba(236, 89, 60, 0.27);
    transform: translateY(-1px);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.login-submit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-note {
    margin-top: 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.aliyun-mark {
    display: inline-block;
    color: #e86b21;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-note p {
    margin: 6px 0 0;
    color: #8490a3;
    font-size: 9px;
    line-height: 1.65;
}

.login-support {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 28px;
    color: #9ba5b4;
    font-size: 10px;
}

.login-support a {
    color: #5477b8;
    text-decoration: none;
}

@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 30px 22px;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 480px) {
    .login-heading h2 {
        font-size: 25px;
    }

    .code-row {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .login-form-panel {
        align-items: flex-start;
        padding-top: 40px;
    }
}
