:root { color-scheme: dark; --bg: #070b18; --panel: #111a2f; --line: #263555; --text: #f8fafc; --muted: #9aa8c5; --accent: #ef4444; --ok: #34d399; }
* { box-sizing: border-box; }
:root {
	color-scheme: light;
	--ink: #102a2b;
	--ink-soft: #385859;
	--paper: #f3f1eb;
	--paper-deep: #e8e7df;
	--white: #fffefa;
	--line: #d5d9d1;
	--coral: #e8614d;
	--coral-dark: #c74b3b;
	--mint: #b9d6ca;
	--muted: #70817e;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	color: var(--ink);
	background:
		linear-gradient(90deg, rgba(16, 42, 43, .035) 1px, transparent 1px) 0 0 / 56px 56px,
		var(--paper);
	font-family: 'Manrope', 'Segoe UI', sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-frame {
	display: grid;
	grid-template-columns: minmax(380px, .92fr) minmax(480px, 1.08fr);
	min-height: 100vh;
}

.operations-panel {
	position: relative;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 42px clamp(34px, 5vw, 84px) 38px;
	color: var(--paper);
	background:
		radial-gradient(circle at 90% 18%, rgba(185, 214, 202, .18) 0 1px, transparent 2px) 0 0 / 24px 24px,
		var(--ink);
}

.operations-panel::after {
	position: absolute;
	right: -105px;
	bottom: -155px;
	width: 400px;
	height: 400px;
	border: 1px solid rgba(185, 214, 202, .22);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(185, 214, 202, .05), 0 0 0 84px rgba(185, 214, 202, .04), 0 0 0 126px rgba(185, 214, 202, .03);
	content: '';
}

.topline, .panel-footer, .signal-heading, .signal-meta, .access-header, .connection, footer { position: relative; z-index: 1; }
.topline, .panel-footer, .access-header, footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand-mark { display: flex; align-items: flex-end; gap: 4px; height: 24px; }
.brand-mark span { display: block; width: 6px; background: var(--coral); }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 22px; }
.brand-mark span:nth-child(3) { height: 18px; }
.system-code, .brand-index, .eyebrow, .signal-heading, .signal-meta, .security-seal, .connection-note { font-family: 'DM Mono', monospace; letter-spacing: .12em; font-size: 10px; }
.system-code { color: var(--mint); }
.operations-copy { position: relative; z-index: 1; max-width: 530px; margin-top: auto; margin-bottom: auto; padding: 80px 0 64px; }
.eyebrow { margin: 0 0 28px; color: var(--coral); font-weight: 500; }
.operations-copy h1, .brand h2 { margin: 0; font-size: clamp(45px, 5.6vw, 82px); line-height: .98; letter-spacing: -.07em; font-weight: 700; }
.operations-copy h1 em, .brand h2 em { color: var(--mint); font-family: 'Newsreader', Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
.lead { max-width: 360px; margin: 30px 0 0; color: #b7c7c2; font-size: 15px; line-height: 1.7; }
.signal-board { position: relative; z-index: 1; width: min(100%, 500px); padding: 18px 0; border-top: 1px solid rgba(185, 214, 202, .3); border-bottom: 1px solid rgba(185, 214, 202, .3); }
.signal-heading { display: flex; justify-content: space-between; color: var(--mint); font-size: 9px; }
.live-label { color: #d5e8dd; }
.live-label i, .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(232, 97, 77, .13); }
.signal-line { display: flex; align-items: center; gap: 5px; height: 54px; margin: 6px 0; }
.signal-line span { flex: 1; height: 15px; background: #47716b; opacity: .65; transform: skewX(-24deg); }
.signal-line span:nth-child(2), .signal-line span:nth-child(7), .signal-line span:nth-child(10) { height: 28px; background: var(--coral); opacity: .9; }
.signal-line span:nth-child(4), .signal-line span:nth-child(8) { height: 40px; background: var(--mint); opacity: .8; }
.signal-meta { display: flex; justify-content: space-between; color: #76918a; font-size: 8px; }
.panel-footer { color: #78928d; font-size: 9px; letter-spacing: .08em; }
.footer-rule { width: 60px; height: 1px; flex: 1; background: rgba(185, 214, 202, .25); }

.access-panel { display: flex; min-height: 100vh; flex-direction: column; padding: 42px clamp(28px, 6vw, 100px) 28px; background: var(--paper); }
.access-header { color: var(--ink-soft); }
.access-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.security-seal { display: flex; align-items: center; color: var(--muted); font-size: 9px; }
.security-seal span { width: 7px; height: 7px; margin-right: 8px; border: 1px solid var(--coral); border-radius: 50%; }
.access-content { width: min(100%, 500px); margin: auto; }
.brand { margin-bottom: 34px; }
.brand-index { display: block; margin-bottom: 20px; color: var(--coral-dark); font-weight: 500; }
.brand h2 { font-size: clamp(42px, 5vw, 68px); }
.subtitle { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); background: rgba(255, 254, 250, .72); box-shadow: 0 24px 80px rgba(16, 42, 43, .08); }
form, .session { padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 23px; }
label { display: block; margin: 0 0 9px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.input-wrap { display: flex; align-items: center; border-bottom: 1px solid #aebbb7; transition: border-color .2s ease; }
.input-wrap:focus-within { border-color: var(--coral); }
.field-index { align-self: stretch; display: grid; place-items: center; width: 35px; color: #9aa9a5; font-family: 'DM Mono', monospace; font-size: 10px; }
input { width: 100%; min-width: 0; border: 0; padding: 12px 8px 13px; outline: 0; color: var(--ink); background: transparent; }
input::placeholder { color: #97a6a2; }
.reveal-button { width: auto; border: 0; padding: 10px 0 10px 10px; color: var(--coral-dark); background: transparent; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .08em; }
.message { min-height: 20px; margin: 0 0 14px; color: var(--coral-dark); font-size: 12px; }
.primary-action { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; padding: 16px 18px; color: white; background: var(--coral); font-size: 13px; font-weight: 800; transition: background .2s ease, transform .2s ease; }
.primary-action:hover { background: var(--coral-dark); transform: translateY(-2px); }
.primary-action b { font-size: 18px; font-weight: 400; }
.dashboard-link { color: white; text-decoration: none; }
.logout-button { color: var(--coral-dark); border-color: #e9b8ae; }
.connection { padding: 15px 22px; border-top: 1px solid var(--line); color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .06em; }
.dot { margin-right: 8px; background: #d49331; box-shadow: none; }
.dot.online { background: #3a9978; }
.connection-note { margin-left: auto; color: #a4b0ac; font-size: 8px; }
.session strong { display: block; margin-bottom: 8px; font-size: 20px; }
.session p { margin: 0 0 22px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 11px; }
.secondary { width: 100%; margin-top: 10px; border: 1px solid var(--line); padding: 12px; color: var(--ink-soft); background: transparent; font-size: 12px; }
footer { margin-top: 28px; color: #98a39f; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .08em; }

@media (max-width: 900px) {
	.app-frame { grid-template-columns: 1fr; }
	.operations-panel { min-height: auto; padding-bottom: 30px; }
	.operations-copy { padding: 80px 0 48px; }
	.operations-copy h1 { font-size: clamp(44px, 10vw, 70px); }
	.access-panel { min-height: auto; padding-top: 30px; }
}

@media (max-width: 520px) {
	body { background: var(--paper); }
	.operations-panel { padding: 26px 22px 28px; }
	.operations-copy { padding: 62px 0 42px; }
	.lead { font-size: 13px; }
	.access-panel { padding: 26px 18px 22px; }
	.access-header { align-items: flex-start; }
	.security-seal { text-align: right; }
	.connection { padding-inline: 18px; }
	.connection-note { display: none; }
	footer { line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
main { width: min(100%, 440px); }
.brand { margin-bottom: 18px; text-align: center; }
.eyebrow { color: #fb7185; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 8px 0 4px; font-size: clamp(28px, 8vw, 42px); letter-spacing: -.04em; }
.subtitle { margin: 0; color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 26, 47, .94); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; }
form, .session { padding: 26px; }
label { display: block; margin: 0 0 7px; color: #dbe5f7; font-size: 13px; font-weight: 700; }
input { width: 100%; margin-bottom: 18px; border: 1px solid #344568; border-radius: 12px; padding: 13px 14px; background: #1d2a43; color: var(--text); font: inherit; outline: none; }
input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147, 197, 253, .16); }
button { width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; background: var(--accent); color: white; cursor: pointer; font: inherit; font-weight: 800; }
button:disabled { cursor: wait; opacity: .65; }
.message { min-height: 21px; margin: 0 0 14px; color: #fda4af; font-size: 13px; }
.connection { display: flex; align-items: center; gap: 8px; padding: 13px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.dot.online { background: var(--ok); }
.session strong { display: block; margin-bottom: 8px; font-size: 18px; }
.session p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.secondary { margin-top: 10px; background: #253452; }
.hidden { display: none; }
footer { margin-top: 18px; text-align: center; color: #71809d; font-size: 11px; }
