:root {
    color-scheme: dark;
    --canvas: #121315;
    --surface: #191b1e;
    --line: #303237;
    --muted: #97999f;
    --text: #f2f0ec;
    --accent: #ff9b45;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.login-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.workspace-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 42px clamp(32px, 5.1vw, 90px) 34px; background: #191b1d; border-right: 1px solid #2b2d30; }
.workspace-intro::before { position: absolute; z-index: -1; content: ""; width: 680px; height: 680px; right: -280px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 91, 33, .14), transparent 68%); pointer-events: none; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: block; flex-shrink: 0; border-radius: 12px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 2px; line-height: 1.15; }
.brand-name span { display: block; margin-top: 6px; color: #a4a4a7; font-size: 11px; letter-spacing: 1.1px; font-weight: 400; }
.intro-content { width: 100%; max-width: 620px; margin: auto 0; padding-top: 58px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #c9b5a5; font-size: 12px; letter-spacing: 1.5px; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; background: var(--accent); }
h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(38px, 4.1vw, 66px); font-weight: 650; line-height: 1.32; letter-spacing: -2px; }
h1 > span { color: var(--accent); }
.intro-description { margin: 23px 0 0; color: #a4a5aa; font-size: 15px; line-height: 1.9; }
.workspace-art { position: relative; height: 290px; max-width: 505px; margin: 12px 0 18px; }
.art-monogram { position: absolute; top: -12px; right: 12px; color: rgba(255, 255, 255, .025); font-size: 188px; font-weight: 900; font-style: italic; letter-spacing: -15px; user-select: none; }
.art-orbit { position: absolute; width: 380px; height: 180px; left: -10px; top: 83px; border: 1px solid rgba(255, 155, 69, .12); border-radius: 50%; transform: rotate(-23deg); }
.preview-panel { position: absolute; top: 54px; left: 18px; width: 355px; height: 207px; border: 1px solid #42403e; border-radius: 12px; background: #222426; box-shadow: 0 24px 50px #0004; transform: perspective(1100px) rotateY(9deg) rotateX(4deg) rotateZ(-5deg); overflow: hidden; }
.preview-topbar { height: 36px; padding: 0 16px; border-bottom: 1px solid #353536; display: flex; align-items: center; justify-content: space-between; }
.preview-brand { color: #bcb8b3; font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.preview-indicator { width: 5px; height: 5px; background: #ff9b45; border-radius: 50%; box-shadow: 0 0 8px #ff9b4540; }
.preview-body { display: flex; height: calc(100% - 36px); }
.preview-sidebar { width: 53px; border-right: 1px solid #333538; padding: 19px 10px; }
.preview-sidebar i { display: block; height: 6px; border-radius: 2px; margin-bottom: 13px; background: #3a3c3e; }
.preview-sidebar i.selected { background: #b67945; }
.preview-main { padding: 15px 18px; flex: 1; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #d8d4cf; font-size: 10px; }
.preview-heading i { width: 36px; height: 10px; border-radius: 3px; background: #a46536; }
.preview-cards { display: flex; gap: 9px; margin-bottom: 14px; }
.preview-cards i { height: 36px; flex: 1; border: 1px solid #45413d; border-radius: 5px; background: linear-gradient(135deg, #68503b, #302e2c); }
.preview-cards i:nth-child(2) { background: linear-gradient(135deg, #414e4b, #2c302f); border-color: #3b4442; }
.preview-cards i:nth-child(3) { background: linear-gradient(135deg, #4b454f, #2f2d31); border-color: #423e46; }
.preview-row { display: flex; gap: 9px; align-items: center; height: 19px; border-top: 1px solid #333537; }
.preview-row > i { height: 5px; width: 30px; background: #66635d; border-radius: 2px; }
.preview-row > span { height: 4px; width: 97px; background: #393c3e; border-radius: 2px; }
.preview-row > b { height: 5px; width: 22px; background: #4c5b4c; border-radius: 2px; margin-left: auto; }
.art-label { position: absolute; right: 0; bottom: 11px; display: flex; align-items: center; gap: 11px; padding: 14px 20px 14px 14px; border: 1px solid #484039; border-radius: 10px; background: #2c2723; box-shadow: 0 12px 28px #0003; transform: rotate(3deg); }
.art-label-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #725131; border-radius: 8px; color: #ffb779; font-size: 20px; }
.art-label > div { color: #e3d9cd; font-size: 12px; font-weight: 600; }
.art-label > div > span { display: block; margin-top: 5px; color: #a39485; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.intro-footer { display: flex; align-items: center; gap: 16px; margin-top: 16px; color: #949599; font-size: 11px; letter-spacing: 1px; }
.intro-footer i { width: 3px; height: 3px; border-radius: 50%; background: #525253; }
.login-side { display: flex; flex-direction: column; min-width: 0; padding: 43px clamp(32px, 6vw, 100px) 34px; }
.access-label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #85868b; font-size: 10px; letter-spacing: 2px; }
.access-label > span { width: 5px; height: 5px; background: #a68160; border-radius: 50%; }
.login-container { width: 100%; max-width: 380px; align-self: center; margin: auto 0; padding: 50px 0; }
.entry-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 32px; border: 1px solid #3b332c; border-radius: 15px; color: var(--accent); background: #241f1c; }
.form-eyebrow { margin: 0 0 10px; color: #a9a5a1; font-size: 13px; letter-spacing: 2px; }
h2 { margin: 0; font-size: 32px; font-weight: 620; letter-spacing: -.7px; line-height: 1.3; }
.form-description { margin: 13px 0 33px; color: #94969c; font-size: 13px; line-height: 1.8; }
.form-group { margin-bottom: 21px; }
.form-group label { display: block; margin-bottom: 10px; color: #c8c6c3; font-size: 13px; }
.form-group input { display: block; width: 100%; height: 52px; padding: 0 15px; border: 1px solid #34363b; border-radius: 9px; background: #1b1d20; color: #f2f0ec; font-size: 16px; line-height: 1.5; transition: border-color .18s, box-shadow .18s; appearance: none; }
.form-group input::placeholder { color: #7e8087; font-size: 14px; opacity: 1; }
.form-group input:hover { border-color: #5a5149; }
.form-group input:focus { outline: none; border-color: #e29551; box-shadow: 0 0 0 3px #ff9b4515; }
.form-group input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #242321 inset; -webkit-text-fill-color: #f2f0ec; caret-color: #f2f0ec; }
.btn { position: relative; display: block; width: 100%; min-height: 52px; margin-top: 29px; padding: 14px 35px; border: 1px solid #ffaf68; border-radius: 9px; background: #ff9b45; color: #291a0e; font-size: 15px; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: background .18s, transform .18s; }
.btn::after { content: "→"; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; }
.btn:hover { background: #ffaf68; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; background: #a5754e; border-color: #a5754e; color: #20170f; transform: none; }
.error, .success { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.error { color: #ffac9f; }
.success { color: #8ed8aa; }
.error:not(:empty), .success:not(:empty) { margin-top: 14px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #8f9096; font-size: 11px; line-height: 1.7; }
.login-note > span { width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: #7c736a; }
.toggle-form { margin-top: 20px; text-align: center; }
.toggle-form a { display: inline-block; padding: 7px 3px; color: var(--accent); font-size: 13px; text-decoration: none; }
.toggle-form a:hover { text-decoration: underline; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #797b80; font-size: 10px; letter-spacing: 1px; }
.login-footer > span:first-child { font-weight: 600; letter-spacing: 2px; }

@media (min-width: 1600px) {
    .workspace-intro { padding-left: max(90px, calc((100vw - 1400px) / 2)); }
    .intro-content { padding-top: 70px; }
    .workspace-art { height: 325px; margin-top: 28px; }
    .preview-panel { width: 380px; height: 221px; }
    .preview-cards i { height: 43px; }
    .preview-row { height: 22px; }
}

@media (max-width: 1050px) {
    .workspace-intro { padding-left: 32px; padding-right: 32px; }
    .login-side { padding-left: 40px; padding-right: 40px; }
    .workspace-art { height: 255px; }
    .preview-panel { left: 0; width: 310px; height: 193px; }
    .preview-main { padding: 13px; }
    .preview-sidebar { width: 45px; }
    .preview-cards { margin-bottom: 10px; }
    .preview-cards i { height: 30px; }
    .art-label { right: -6px; bottom: -1px; padding: 11px 14px 11px 11px; }
}

@media (max-width: 760px) {
    .login-shell { display: block; }
    .workspace-intro { padding: 26px 28px 25px; border-right: 0; border-bottom: 1px solid #2d2c2b; background: radial-gradient(ellipse at 100% 100%, #5e3f2829, transparent 70%), #191b1d; }
    .workspace-intro::before, .workspace-art, .intro-footer, .intro-description, .eyebrow { display: none; }
    .brand-mark { width: 35px; height: 35px; border-radius: 9px; }
    .brand-name { font-size: 17px; letter-spacing: 1.6px; }
    .brand-name span { margin-top: 5px; font-size: 10px; letter-spacing: .7px; }
    .intro-content { padding-top: 28px; }
    h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.4; letter-spacing: -.5px; }
    h1 > br { display: none; }
    h1 > span { margin-left: 5px; }
    .login-side { min-height: calc(100svh - 166px); padding: 30px 28px 23px; }
    .access-label, .entry-symbol { display: none; }
    .login-container { max-width: 420px; padding: 0 0 42px; margin: auto 0; }
    .form-eyebrow { margin-bottom: 9px; font-size: 12px; }
    h2 { font-size: 28px; }
    .form-description { margin-top: 10px; margin-bottom: 27px; }
    .form-group { margin-bottom: 20px; }
    .btn { margin-top: 25px; }
    .login-note { margin-top: 20px; font-size: 10px; }
    .login-footer { width: 100%; max-width: 420px; align-self: center; margin-top: auto; font-size: 9px; }
}

@media (max-width: 360px) {
    .workspace-intro { padding-right: 21px; padding-left: 21px; }
    .login-side { padding-right: 21px; padding-left: 21px; }
    h1 { font-size: 25px; }
    .brand-name { font-size: 16px; }
    .login-note { letter-spacing: -.2px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
