:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.button-spinner { display: none; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-left-color: transparent; animation: spin .65s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.feedback[hidden] { display: none; }
.feedback { display: flex; align-items: center; width: 100%; padding: 12px 13px; border-radius: 6px; font-size: 13px; line-height: 1.4; }
.feedback[data-kind="error"] { background: #fff2f0; color: #b63530; border: 1px solid #f6d1cb; }
.feedback[data-kind="info"] { background: #eff5ff; color: #315c92; border: 1px solid #dceaff; }

/* Watcher — classic login in Flussonic-inspired visual language. */
.watcher-page { background: #fff; color: #343844; }
.watcher-main { min-height: 100vh; }
.watcher-head { height: clamp(206px, 34vh, 318px); display: flex; align-items: center; justify-content: center; background: #292e38; }
.watcher-brand { display: flex; align-items: center; gap: 18px; color: #f8f9fb; transform: translateY(-3px); }
.watcher-symbol { flex: none; width: 76px; height: 76px; }
.watcher-brand-text { white-space: nowrap; font-weight: 300; letter-spacing: 1px; }
.watcher-wordmark { font-size: 30px; line-height: 1.12; font-weight: 300; letter-spacing: 3.8px; }
.watcher-product { font-size: 48px; line-height: 1.05; font-weight: 300; letter-spacing: 3px; }
.watcher-form-area { display: flex; justify-content: center; padding: clamp(64px, 9vh, 95px) 20px 68px; }
.watcher-login-box { width: min(100%, 430px); }
.watcher-form .field { margin-bottom: 20px; }
.watcher-form label:not(.language-label) { display: block; font-size: 13px; color: #777b83; margin: 0 0 6px; }
.watcher-form input { outline: none; height: 43px; display: block; width: 100%; border: 1px solid #dde0e6; background: #fff; border-radius: 1px; padding: 0 12px; color: #303641; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.watcher-form input:focus { border-color: #3278e8; box-shadow: 0 0 0 1px #3278e8; }
.watcher-form .feedback { margin: 1px 0 17px; }
.watcher-submit { border: 0; color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; height: 42px; width: 100%; border-radius: 28px; background: #454a56; box-shadow: 0 3px 9px #24293536; margin-top: 29px; font-size: 13px; letter-spacing: .2px; transition: background .18s, box-shadow .18s; }
.watcher-submit:hover:not(:disabled) { background: #373d4b; box-shadow: 0 4px 14px #24293544; }
.watcher-submit:disabled { opacity: .75; }
.watcher-bottom-row { display: flex; justify-content: space-between; align-items: center; margin: 17px 10px 0; gap: 15px; }
.language-picker { appearance: none; background: transparent; color: #737681; border: 0; padding: 3px 19px 3px 0; font-size: 12px; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8"%3E%3Cpath d="m1 2 4 4 4-4" fill="none" stroke="%23777b83" stroke-width="1.5"/%3E%3C/svg%3E'); background-position: right center; background-repeat: no-repeat; cursor: pointer; }
.text-button { background: none; border: none; padding: 4px 0; color: #686d78; font-size: 11px; font-weight: 500; letter-spacing: .1px; }
.text-button:hover { color: #2b6bcf; }

/* Media — modern streaming/server console. */
.media-page { background: #080c16; color: #f3f5fa; min-height: 100vh; }
.media-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(470px, .83fr); }
.media-hero { min-width: 0; overflow: hidden; position: relative; padding: 42px clamp(32px, 5vw, 95px) 28px; background: radial-gradient(ellipse at 42% 51%, #162e45 0%, #0c182a 43%, #080f1c 78%); display: flex; flex-direction: column; }
.media-hero::before { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: .21; background-image: linear-gradient(#6b8cac0a 1px, transparent 1px), linear-gradient(90deg, #6b8cac0a 1px, transparent 1px); background-size: 35px 35px; }
.media-hero::after { content: ""; pointer-events: none; position: absolute; width: 900px; height: 900px; border: 1px solid #256f9419; border-radius: 50%; left: 15%; top: 27%; box-shadow: 0 0 0 150px #256f9407, 0 0 0 320px #256f9405; }
.media-hero-top, .hero-center, .media-hero-footer { position: relative; z-index: 1; }
.media-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.media-logo { font-size: 25px; font-weight: 750; letter-spacing: -.9px; display: flex; align-items: center; gap: 10px; }
.logo-accent { color: #37c9cc; }
.logo-emblem { height: 42px; width: 42px; display: grid; place-items: center; border-radius: 12px; color: #001c29; background: linear-gradient(135deg, #41e4d1, #2bb8e9); }
.hero-caption { font-size: 10px; letter-spacing: 1.4px; color: #6a879c; white-space: nowrap; }
.hero-center { width: min(100%, 700px); margin: auto; padding: 36px 0 30px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #36d1cf; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #47e4c5; box-shadow: 0 0 0 5px #47e4c51b, 0 0 22px #47e4c588; }
.hero-center h1 { font-weight: 680; font-size: clamp(32px, 3.2vw, 53px); line-height: 1.15; letter-spacing: -1.65px; margin: 23px 0 18px; }
.hero-dot { color: #42d6cb; }
.hero-center p { color: #8b9db1; line-height: 1.75; margin: 0 0 36px; font-size: 14px; }
.preview-window { border: 1px solid #45627864; background: linear-gradient(120deg, #162b3f, #0e1b2b); border-radius: 16px; box-shadow: 0 28px 65px #0009, inset 0 1px 0 #eff9ff12; overflow: hidden; transform: perspective(1200px) rotateX(1deg); }
.preview-title { display: flex; align-items: center; padding: 14px 17px; gap: 19px; font-size: 10px; font-weight: 650; letter-spacing: 1.15px; color: #adbfcb; border-bottom: 1px solid #7996ab14; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #456279; }
.window-dots i:first-child { background: #fa6d72; }
.window-dots i:nth-child(2) { background: #f4bd5f; }
.window-dots i:nth-child(3) { background: #50c68c; }
.window-status { display: flex; align-items: center; gap: 6px; color: #47cfa9; margin-left: auto; letter-spacing: .8px; }
.window-status span { width: 5px; height: 5px; border-radius: 50%; background: #47cfa9; }
.camera-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
.camera-tile { aspect-ratio: 2.1 / 1; position: relative; overflow: hidden; border-radius: 7px; border: 1px solid #58728624; background-color: #13283a; background-image: linear-gradient(150deg, #b2ced313, transparent 40%), repeating-linear-gradient(90deg, transparent 0 28px, #83afbc0a 28px 29px), linear-gradient(0deg, #03111bfa, #0c223c66 75%, #335068aa); }
.camera-tile::before { content: ""; position: absolute; left: 13%; right: 6%; top: 23%; bottom: 0; background: linear-gradient(90deg, transparent 18%, #92b1bb3b 18% 20%, transparent 20% 35%, #92b1bb1b 35% 40%, transparent 40% 62%, #8daebb2a 62% 66%, transparent 66%), linear-gradient(0deg, #132737, #587b8730); clip-path: polygon(0 17%, 30% 22%, 30% 3%, 69% 0, 69% 19%, 100% 12%, 100% 100%, 0 100%); }
.camera-tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, #bfffee06 4px); }
.tile-two { background-color: #192e35; filter: hue-rotate(18deg); }
.tile-three { background-color: #122536; filter: hue-rotate(160deg); }
.tile-four { background-color: #142b38; filter: hue-rotate(245deg); }
.tile-reticle { position: absolute; z-index: 1; width: 33px; height: 27px; left: 50%; top: 47%; transform: translate(-50%, -50%); border: 1px solid #c8e6eb3b; border-radius: 3px; }
.tile-reticle::before, .tile-reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; background: #c8e6eb6b; transform: translate(-50%, -50%); }
.tile-reticle::after { transform: translate(-50%, -50%) rotate(90deg); }
.camera-top, .camera-bottom { position: absolute; z-index: 2; left: 10px; right: 10px; color: #bbd4db; font-size: 9px; font-weight: 600; letter-spacing: .4px; }
.camera-top { top: 10px; display: flex; justify-content: space-between; }
.camera-top span { color: #55e6c4; font-size: 8px; }
.camera-bottom { bottom: 9px; color: #e5eeeea6; }
.preview-footer { display: flex; justify-content: space-between; padding: 0 17px 14px; gap: 10px; color: #638197; font-size: 9px; font-weight: 600; letter-spacing: .7px; }
.preview-footer span:first-child { color: #74b9b5; }
.footer-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #5bd6a3; margin-right: 6px; vertical-align: 2px; }
.media-hero-footer { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.25px; color: #526b81; }
.media-auth { background: #101725; min-width: 0; position: relative; display: flex; flex-direction: column; border-left: 1px solid #809cbe10; }
.auth-top-bar { position: absolute; top: 51px; right: 50px; display: flex; align-items: center; gap: 9px; color: #647489; letter-spacing: 1.35px; font-size: 10px; font-weight: 650; }
.auth-top-mark { width: 7px; height: 7px; border: 1.5px solid #40d4ce; transform: rotate(45deg); }
.media-auth-inner { width: min(100% - 78px, 395px); margin: auto; padding: 72px 0; }
.auth-icon { width: 61px; height: 61px; display: grid; place-items: center; border-radius: 17px; background: #1c3040; color: #56e0d4; border: 1px solid #3d6e7444; margin-bottom: 29px; }
.auth-kicker { font-weight: 720; color: #40d0c8; font-size: 11px; letter-spacing: 1.5px; }
.auth-heading h2 { margin: 13px 0 9px; font-size: 34px; line-height: 1.2; font-weight: 690; letter-spacing: -.9px; }
.auth-heading p { margin: 0 0 41px; color: #788a9f; font-size: 13px; line-height: 1.85; }
.media-form .field { margin-bottom: 21px; }
.media-form label { display: block; color: #bdc8d4; font-size: 13px; font-weight: 550; margin-bottom: 10px; }
.input-frame { display: flex; align-items: center; height: 51px; border-radius: 9px; border: 1px solid #344357; color: #73859a; background: #161f30; padding: 0 15px; gap: 11px; transition: border-color .18s, box-shadow .18s; }
.input-frame:focus-within { border-color: #38c6bf; box-shadow: 0 0 0 3px #36c6bf14; }
.input-frame input { background: none; border: 0; outline: none; min-width: 0; flex: 1; color: #e9f2f6; font-size: 14px; }
.input-frame input::placeholder { color: #617287; }
.password-toggle { display: flex; background: none; border: none; color: #70839a; padding: 3px; }
.password-toggle:hover { color: #d1e6e9; }
.media-form .feedback { margin: -1px 0 19px; background: #361e2c; color: #ffc0c2; border-color: #693846; }
.media-form .feedback[data-kind="info"] { background: #192d39; color: #9fcfea; border-color: #315c73; }
.media-submit { margin-top: 31px; width: 100%; height: 52px; border: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #03282e; background: linear-gradient(110deg, #3fe0c9, #2dc4d4); box-shadow: 0 7px 30px #2bcbbb20; font-size: 14px; font-weight: 750; transition: filter .16s, transform .16s; }
.media-submit:not(:disabled):hover { filter: brightness(1.09); transform: translateY(-1px); }
.media-submit:disabled { opacity: .8; }
.media-submit .button-arrow { margin-left: 6px; }
.media-submit.is-loading .button-arrow { display: none; }
.auth-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 27px; color: #76869a; font-size: 11px; text-align: center; }
.auth-hint svg { flex: none; }
.media-auth-footer { position: absolute; left: 50px; right: 50px; bottom: 28px; display: flex; justify-content: space-between; color: #596b80; letter-spacing: .7px; font-size: 9px; }
.media-auth-footer span:first-child { display: flex; align-items: center; gap: 8px; }
.media-auth-footer i { width: 6px; height: 6px; background: #45d3b5; border-radius: 50%; }

@media (max-width: 1080px) {
  .media-shell { grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); }
  .media-hero { padding-inline: 35px; }
  .hero-caption { display: none; }
  .hero-center h1 { font-size: 37px; }
}
@media (max-width: 800px) {
  .media-shell { grid-template-columns: 1fr; }
  .media-hero { min-height: 158px; padding: 22px 26px; }
  .media-hero::after, .hero-center, .media-hero-footer { display: none; }
  .media-auth { min-height: calc(100vh - 158px); }
  .auth-top-bar { top: 27px; right: 27px; }
  .media-auth-inner { padding-block: 82px; }
  .media-auth-footer { position: static; margin: 0 30px 24px; }
}
@media (max-width: 520px) {
  .watcher-head { height: 210px; }
  .watcher-symbol { width: 56px; height: 56px; }
  .watcher-brand { gap: 10px; }
  .watcher-wordmark { font-size: 22px; letter-spacing: 2.7px; }
  .watcher-product { font-size: 34px; letter-spacing: 2px; }
  .watcher-form-area { padding-top: 66px; }
  .watcher-login-box { width: min(100%, 370px); }
  .media-hero { min-height: 93px; }
  .media-logo { font-size: 23px; }
  .media-auth { min-height: calc(100vh - 93px); }
  .auth-top-bar { display: none; }
  .media-auth-inner { width: min(100% - 44px, 395px); padding-block: 52px; }
  .auth-heading h2 { font-size: 30px; }
  .auth-heading p { font-size: 12px; }
  .auth-hint { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
