:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #17202a; background: #f4f1e9; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f1e9; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.auth-shell { position: relative; min-height: 100vh; padding: 32px clamp(24px, 5vw, 80px); overflow: hidden; }
.auth-brand { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 10px; color: #17202a; text-decoration: none; font-weight: 760; font-size: 18px; }
.auth-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: #17202a; border-radius: 10px; font-size: 15px; }
.top-login { position: absolute; z-index: 4; top: 32px; right: clamp(24px, 5vw, 80px); padding: 10px 20px; color: #17202a; background: rgba(255,255,255,.7); border: 1px solid rgba(23,32,42,.15); border-radius: 999px; font-weight: 700; backdrop-filter: blur(12px); }
body:not([data-auth-mode="landing"]) .top-login { display: none; }
.landing-panel { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); align-items: center; gap: clamp(50px, 8vw, 130px); min-height: calc(100vh - 98px); max-width: 1400px; margin: 0 auto; }
.hero-copy { max-width: 600px; }
.hero-eyebrow, .auth-kicker { margin: 0 0 18px; color: #b24f34; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(52px, 6vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero-description { max-width: 540px; margin: 30px 0 0; color: #59616a; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.auth-button { min-height: 48px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent; font-weight: 750; transition: transform .16s ease, box-shadow .16s ease; }
.auth-button:hover:not(:disabled) { transform: translateY(-2px); }
.auth-button:disabled { cursor: wait; opacity: .65; }
.auth-button.primary { color: #fff; background: #17202a; box-shadow: 0 14px 32px rgba(23,32,42,.18); }
.auth-button.secondary { color: #17202a; background: rgba(255,255,255,.72); border-color: rgba(23,32,42,.14); }
.trial-note { margin: 16px 0 0; color: #7a807f; font-size: 13px; }
.hero-board { position: relative; min-height: 570px; border: 1px solid rgba(23,32,42,.1); border-radius: 34px; background: #e9e5da; overflow: hidden; box-shadow: 0 35px 90px rgba(64,55,40,.16); transform: rotate(1.3deg); }
.hero-grid { position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(23,32,42,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,42,.12) 1px, transparent 1px); background-size: 30px 30px; }
.hero-card { position: absolute; display: grid; align-content: start; gap: 14px; width: 220px; min-height: 140px; padding: 24px; border: 1px solid rgba(23,32,42,.12); border-radius: 8px; box-shadow: 0 18px 36px rgba(45,40,32,.14); transform: rotate(-3deg); }
.hero-card span { color: #687078; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-card strong { font-family: Georgia, "Songti SC", serif; font-size: 24px; line-height: 1.35; font-weight: 500; }
.card-yellow { top: 78px; left: 55px; background: #ffe985; }
.card-blue { right: 55px; top: 192px; background: #cfe1f5; transform: rotate(2.5deg); }
.card-white { left: 100px; bottom: 58px; background: #fffdf8; transform: rotate(1deg); }
.hero-line { position: absolute; inset: 80px 30px auto; width: calc(100% - 60px); height: 330px; fill: none; stroke: #b24f34; stroke-width: 2.5; stroke-linecap: round; opacity: .72; }
.auth-panel { display: grid; place-items: center; min-height: calc(100vh - 96px); padding: 45px 0; }
.auth-card { width: min(100%, 460px); padding: clamp(28px, 5vw, 48px); background: rgba(255,255,255,.82); border: 1px solid rgba(23,32,42,.11); border-radius: 28px; box-shadow: 0 30px 80px rgba(64,55,40,.14); backdrop-filter: blur(18px); }
.auth-card header { position: relative; text-align: center; }
.back-button { position: absolute; left: -4px; top: -4px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #ece9e1; color: #17202a; font-size: 20px; }
.auth-card h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 40px; font-weight: 500; }
.auth-card header p:last-child { margin: 12px 0 0; color: #71777c; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 30px 0 24px; padding: 5px; border-radius: 14px; background: #ebe8df; }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 10px; color: #687078; background: transparent; font-weight: 750; }
.auth-tabs button.active { color: #17202a; background: #fff; box-shadow: 0 4px 12px rgba(23,32,42,.08); }
.auth-form { display: grid; gap: 17px; }
.auth-form label { display: grid; gap: 8px; color: #343c44; font-size: 14px; font-weight: 700; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d5d2ca; border-radius: 12px; outline: none; background: #fff; }
.auth-form input:focus { border-color: #17202a; box-shadow: 0 0 0 3px rgba(23,32,42,.09); }
.field-hint { margin: -8px 0 0; color: #7a807f; font-size: 12px; }
.auth-message { min-height: 22px; margin: 18px 0 0; color: #b33b32; font-size: 13px; text-align: center; }
.auth-message[data-type="info"] { color: #486777; }
@media (max-width: 940px) { .landing-panel { grid-template-columns: 1fr; padding: 90px 0 40px; } .hero-copy { margin: 0 auto; text-align: center; } .hero-description { margin-inline: auto; } .hero-actions { justify-content: center; } .hero-board { min-height: 480px; } }
@media (max-width: 560px) { .auth-shell { padding: 22px 18px; } .top-login { top: 22px; right: 18px; } .hero-copy h1 { font-size: 48px; } .hero-board { min-height: 410px; border-radius: 24px; } .hero-card { width: 180px; min-height: 120px; padding: 18px; } .hero-card strong { font-size: 19px; } .card-yellow { left: 22px; top: 45px; } .card-blue { right: 18px; top: 160px; } .card-white { left: 48px; bottom: 28px; } }
