:root {
    color-scheme: light;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f3f6fb;
    color: #1d2939;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr); }
.login-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 64px; color: #fff; background: linear-gradient(145deg, #155eef 0%, #4138c2 58%, #6941c6 100%); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.login-visual::before { width: 420px; height: 420px; right: -130px; top: -160px; }
.login-visual::after { width: 520px; height: 520px; left: -220px; bottom: -300px; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; font-size: 18px; }
.login-brand span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 14px; background: rgba(255,255,255,.16); font-size: 14px; font-weight: 800; }
.login-copy { position: relative; z-index: 1; max-width: 620px; margin: auto 0; }
.login-copy small { letter-spacing: 3px; opacity: .72; }
.login-copy h1 { margin: 18px 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.08; letter-spacing: -2px; }
.login-copy p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.9; }
.login-decoration { position: relative; z-index: 1; display: flex; gap: 8px; }
.login-decoration i { width: 54px; height: 5px; display: block; border-radius: 99px; background: rgba(255,255,255,.34); }
.login-decoration i:first-child { background: #fff; }
.login-panel { display: grid; place-items: center; padding: 40px; background: #f8fafc; }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid #e4e7ec; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(16,24,40,.12); }
.login-title { display: flex; align-items: center; gap: 15px; margin-bottom: 34px; }
.login-logo { width: 48px; height: 48px; display: none; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #155eef, #6941c6); font-weight: 800; }
.login-title h2 { margin: 0; font-size: 28px; }
.login-title p { margin: 7px 0 0; color: #98a2b3; font-size: 13px; }
.login-field { display: block; margin-top: 20px; }
.login-field > label { display: block; margin-bottom: 8px; color: #475467; font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; padding: 13px 14px; border: 1px solid #d0d5dd; border-radius: 10px; color: #101828; background: #fff; outline: none; transition: .18s; }
.login-field input:focus { border-color: #155eef; box-shadow: 0 0 0 4px rgba(21,94,239,.1); }
.password-input { position: relative; }
.password-input input { padding-right: 50px; }
.password-toggle { position: absolute; top: 50%; right: 6px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #667085; background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: #155eef; background: #f2f4f7; }
.password-toggle:focus-visible { outline: 2px solid #155eef; outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle[aria-pressed="true"]::after { content: ""; position: absolute; width: 23px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.login-error { min-height: 20px; margin: 14px 0 0; color: #d92d20; font-size: 13px; }
.login-submit { width: 100%; margin-top: 8px; padding: 13px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #155eef, #6941c6); font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(21,94,239,.22); }
.login-submit:disabled { opacity: .6; cursor: wait; }
.login-tip { margin: 20px 0 0; color: #98a2b3; font-size: 12px; text-align: center; }

@media (max-width: 860px) {
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; padding: 24px; }
    .login-logo { display: grid; }
    .login-card { padding: 30px 24px; }
}
