@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
:root { font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #20372d; background: #fffefa; font-synthesis: none; }
body { margin: 0; --accent: #246749; --accent-hover: #194f36; --tint: #e7eee4; --ink: #20372d; --muted: #66736b; --line: #dfe5dd; }
body.requests { --accent: #355bc6; --accent-hover: #2746a4; --tint: #e9edf8; --ink: #243453; --muted: #697487; --line: #dfe4ee; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.login-shell { min-height: 100svh; display: grid; grid-template-columns: 1.08fr 1fr; }
.story { background: var(--tint); padding: 42px clamp(32px, 4.4vw, 80px) 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.story::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; right: -300px; bottom: -340px; box-shadow: 0 0 0 65px color-mix(in srgb, var(--accent) 3%, transparent), 0 0 0 130px color-mix(in srgb, var(--accent) 2%, transparent); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark { width: 42px; height: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--accent); border-radius: 13px; transform: rotate(-5deg); }
.brand-mark i { background: #fffefa; border-radius: 2px; }
.brand-mark i:last-child { opacity: .45; }
.brand-name { font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.brand-caption { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1.7px; text-transform: uppercase; margin-top: 2px; }
.story-content { position: relative; z-index: 1; margin: auto 0; padding: 54px 0 40px; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.story h2 { font-size: clamp(42px, 4.4vw, 68px); line-height: 1.07; letter-spacing: -2.9px; font-weight: 500; margin: 0; }
.story h2 span { color: var(--accent); }
.story-description { color: var(--muted); max-width: 350px; font-size: 16px; line-height: 1.65; margin: 23px 0 30px; }
.workspace-preview { position: relative; max-width: 430px; padding: 21px 24px 15px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,254,250,.87); box-shadow: 0 20px 50px -28px color-mix(in srgb,var(--accent) 45%,transparent); transform: rotate(-2deg); }
.preview-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.preview-dots { display: flex; gap: 4px; }
.preview-dots i { width: 4px; height: 4px; border-radius: 50%; background: #adb7ae; }
.preview-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.preview-row + .preview-row { border-top: 1px solid var(--line); }
.preview-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--accent); }
.preview-icon.amber { background: #f8edd6; color: #916727; }
.preview-icon.rose { background: #f7e8e1; color: #a9694b; }
.preview-label { font-size: 14px; font-weight: 500; }
.preview-label small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--muted); }
.preview-check { margin-left: auto; color: var(--accent); width: 19px; }
.preview-stamp { position: absolute; right: -20px; top: -21px; width: 62px; height: 62px; display: grid; place-items: center; background: var(--accent); color: white; border: 6px solid var(--tint); border-radius: 50%; transform: rotate(10deg); }
.preview-stamp svg { width: 25px; height: 25px; }
.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; position: relative; }
.story-footer span:last-child { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.login-panel { background: #fffefa; display: flex; flex-direction: column; padding: 42px clamp(28px, 5vw, 86px) 28px; }
.panel-top { display: flex; justify-content: flex-end; }
.system-badge { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 8px 12px; }
.system-badge svg { width: 14px; height: 14px; }
.login-content { width: 100%; max-width: 390px; margin: auto; padding: 55px 0; }
.welcome-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); background: var(--tint); border-radius: 15px; margin-bottom: 25px; }
h1 { font-size: 36px; letter-spacing: -1.3px; font-weight: 500; line-height: 1.15; margin: 0 0 12px; }
.login-description { color: var(--muted); margin: 0 0 34px; font-size: 14px; line-height: 1.6; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 15px; pointer-events: none; color: #8a958d; width: 18px; height: 18px; }
.input-wrap input { width: 100%; min-width: 0; padding: 15px 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); min-height: 52px; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #969e98; }
.input-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent); }
.input-wrap input[aria-invalid="true"] { border-color: #bc493f; }
.password-toggle { position: absolute; right: 5px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 7px; }
.password-toggle:hover { background: var(--tint); color: var(--accent); }
.password-toggle svg { width: 19px; height: 19px; }
.error-message { font-size: 12px; line-height: 1.5; color: #b63e34; margin: 7px 0 0; }
.remember { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; margin: 0 0 25px; cursor: pointer; width: fit-content; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 53px; padding: 14px 19px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: white; font-size: 14px; font-weight: 500; transition: background .15s, transform .15s; }
.submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.submit:active { transform: translateY(0); }
button:focus-visible, a:focus-visible, .remember input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.access-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 23px 0 0; }
.access-note span { color: var(--ink); font-weight: 500; }
.install-button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; padding: 11px; width: 100%; margin-top: 20px; font-size: 12px; }
.install-button:hover { background: var(--tint); }
.install-button svg { width: 16px; height: 16px; }
.panel-footer { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.6; }
@media(min-width:1600px) { .story-content { max-width: 560px; align-self: center; width: 100%; } }
@media(max-width:1050px) { .story { padding: 32px; } .story h2 { font-size: 46px; } .login-panel { padding: 32px; } .preview-stamp { right: -12px; } }
@media(max-width:760px) {
 .login-shell { grid-template-columns: 1fr; }
 .story { padding: 24px; }
 .brand-mark { width: 35px; height: 35px; padding: 8px; gap: 3px; border-radius: 10px; }
 .brand-name { font-size: 19px; }
 .brand-caption { font-size: 9px; }
 .story-content { margin: 0; padding: 30px 0 7px; }
 .eyebrow, .workspace-preview, .story-description, .story-footer { display: none; }
 .story h2 { font-size: 32px; letter-spacing: -1px; line-height: 1.12; }
 .story h2 br { display: none; }
 .story h2 span { display: block; }
 .login-panel { padding: 26px 24px 20px; }
 .panel-top { display: none; }
 .login-content { padding: 9px 0 30px; }
 .welcome-icon { display: none; }
 h1 { font-size: 29px; }
 .login-description { margin-bottom: 27px; }
 .input-wrap input { font-size: 16px; }
 .panel-footer { border-top: 1px solid var(--line); padding-top: 18px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; } }
