:root { color-scheme:dark; color:#edf4ff; background:#080b12; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; min-height:100svh; display:grid; place-items:center; padding:32px 20px; background:radial-gradient(ellipse at 70% 0%,#245acb3d,transparent 65%); }
.welcome { width:min(100%,520px); border:1px solid #304969; border-radius:16px; overflow:hidden; background:linear-gradient(155deg,#142542,#0d1627 70%); box-shadow:0 18px 50px #0005,0 0 35px #367bff14; }
.terminal-bar { display:flex; align-items:center; gap:14px; padding:16px 20px; background:linear-gradient(110deg,#193967,#15263e); border-bottom:1px solid #304969; color:#bdccdc; font:11px/1.4 ui-monospace,monospace; }
.lights { display:flex; gap:6px; }.lights i { width:7px; height:7px; border-radius:50%; background:#e66c70; }.lights i:nth-child(2) { background:#ffd128; }.lights i:nth-child(3) { background:#50e891; }.mark { margin-left:auto; color:#ffd128; }
.welcome-content { padding:28px 30px 20px; text-align:center; }
img { display:block; width:190px; height:190px; margin:0 auto 24px; object-fit:contain; border-radius:16px; background:#000; }
.eyebrow { color:#42b5ff; font:10px/1.5 ui-monospace,monospace; letter-spacing:.13em; }
h1 { margin:12px 0; font-size:36px; line-height:1.2; letter-spacing:-.035em; }h1 span { color:#42b5ff; }
.description { margin:0 0 26px; color:#bdccdc; font-size:16px; line-height:1.6; }
.enter { display:flex; justify-content:center; align-items:center; gap:18px; min-height:50px; padding:12px 18px; border:1px solid #307ee8; border-left:3px solid #229cff; border-radius:10px; color:#fff; background:linear-gradient(110deg,#183e72,#152a4c); text-decoration:none; font-weight:600; }
.enter span { color:#ffd128; }.enter:hover { background:#205191; border-color:#58beff; }.enter:focus-visible { outline:2px solid #ffd128; outline-offset:4px; }
.access-note { color:#9fb1c8; font-size:12px; line-height:1.5; margin:16px 0 0; }
footer { padding:0 20px 22px; text-align:center; color:#94aac7; font:10px/1.5 ui-monospace,monospace; }
@media(max-width:360px) { body { padding:20px 12px; }.welcome-content { padding:24px 18px 18px; }h1 { font-size:30px; }img { width:156px; height:156px; }.terminal-bar { padding:14px; gap:10px; font-size:10px; } }

/* The existing welcome is also the sign-in screen. */
.login-form { text-align:left; }
.login-form label { display:block; margin:16px 0 8px; color:#bdccdc; font-size:13px; }
.login-form input { width:100%; min-height:48px; padding:12px 14px; border:1px solid #375a85; border-radius:9px; background:#0b1729; color:#edf4ff; font:inherit; font-size:16px; }
.login-form input:focus { outline:2px solid #42b5ff55; outline-offset:2px; border-color:#42b5ff; }
.login-form .enter { width:100%; margin-top:24px; font:inherit; font-weight:600; cursor:pointer; }
.login-form .enter:disabled { cursor:wait; opacity:.7; }
.feedback { color:#ffd76e; font-size:13px; line-height:1.6; overflow-wrap:anywhere; margin:16px 0 0; }
.feedback:empty { display:none; }
.recovery-link { display:inline-block; padding:10px 0 0; color:#8cc9ff; font-size:12px; text-underline-offset:4px; }
.recovery-link:focus-visible { outline:2px solid #ffd128; outline-offset:4px; }

/* A short, decorative startup; these lines do not report infrastructure health. */
[hidden] { display:none!important; }
.welcome-intro { position:fixed; inset:0; z-index:100; display:grid; place-items:center; align-items:safe center; padding:20px; overflow:auto; background:#060a12; color:#72c4ff; font:12px/1.7 ui-monospace,monospace; }
.intro-announcement { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.retro-screen { width:min(100%,460px); border:1px solid #478ac7; border-radius:5px; background:#0a1525; box-shadow:4px 4px 0 #142b42,0 0 50px #267bca20; overflow:hidden; }
.retro-bar { display:flex; justify-content:space-between; gap:12px; padding:10px 15px; border-bottom:1px solid #478ac7; background:#173251; color:#e1efff; font-size:10px; letter-spacing:.08em; }
.retro-bar span:last-child { color:#f8c75b; }
.retro-display { position:relative; isolation:isolate; padding:28px 24px 20px; }
.retro-display::after { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:.3; background:repeating-linear-gradient(0deg,transparent 0 3px,#0004 3px 4px); }
.retro-logo { width:164px; height:164px; margin:0 auto; padding:5px; border:1px solid #32658b; background:#000; box-shadow:0 0 20px #259cff1a; animation:retro-reveal .9s steps(12,end) both; }
.retro-logo img { width:100%; height:100%; margin:0; border-radius:0; object-fit:contain; }
.retro-brand { margin:16px 0 24px; text-align:center; font-size:20px; font-weight:700; letter-spacing:.16em; color:#72c4ff; text-shadow:2px 2px #163d60; }
.retro-brand span { color:#f8c75b; }
.retro-output { min-height:105px; }
.retro-output p { min-height:1.7em; margin:0 0 8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.retro-output p:last-child { color:#f8c75b; }
.retro-output .is-writing::after { content:"▌"; color:#f8c75b; }
.retro-loader { height:10px; margin-top:12px; padding:2px; border:1px solid #32658b; background:#08111d; }
.retro-loader span { display:block; height:100%; width:100%; transform-origin:left; background:repeating-linear-gradient(90deg,#55b6ff 0 8px,transparent 8px 11px); animation:retro-load 3.7s steps(24,end) both; }
.retro-caption { margin:12px 0 0; font-size:9px; letter-spacing:.12em; text-align:center; color:#8dabc7; }
.welcome-intro.is-leaving { opacity:0; transition:opacity .24s ease-out; pointer-events:none; }
body.intro-active { overflow:hidden; }
#welcome-title:focus { outline:none; }
@keyframes retro-reveal { from { clip-path:inset(0 0 100%); transform:translateY(5px); } to { clip-path:inset(0); transform:none; } }
@keyframes retro-load { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media(max-width:360px) { .welcome-intro { padding:14px; }.retro-display { padding:24px 18px 18px; }.retro-logo { width:144px; height:144px; }.retro-output { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .retro-logo,.retro-loader span { animation:none; }.welcome-intro.is-leaving { transition:none; }.retro-display::after { display:none; } }
