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

:root {
  color-scheme: dark;
  --bg: #050d18;
  --bg-soft: #08192c;
  --panel: rgba(9, 24, 43, .87);
  --panel-solid: #0a1a2d;
  --border: rgba(92, 157, 199, .17);
  --border-strong: rgba(69, 183, 239, .32);
  --text: #f2f9ff;
  --muted: #90a9bd;
  --muted-2: #637f95;
  --accent: #40c4ff;
  --accent-light: #88e5ff;
  --success: #41e5af;
  --danger: #ff8c93;
  --shadow: 0 34px 100px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-light); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(96, 201, 255, .9); outline-offset: 3px; }
.auth-body, .dashboard-body { position: relative; isolation: isolate; overflow-x: hidden; background: radial-gradient(ellipse at 72% 0%, rgba(18, 75, 120, .24), transparent 44%), radial-gradient(ellipse at 10% 95%, rgba(12, 56, 91, .25), transparent 42%), var(--bg); }
.tech-grid { position: fixed; inset: 0; pointer-events: none; z-index: -3; background-image: linear-gradient(rgba(35, 116, 175, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 116, 175, .055) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.96), rgba(0,0,0,.28)); }
.tech-grid::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 410px, rgba(33,152,218,.025) 411px, transparent 412px); }
.ambient { position: fixed; width: 440px; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .25; pointer-events: none; z-index: -2; animation: ambient-drift 12s ease-in-out infinite alternate; }
.ambient-one { left: -270px; top: 8%; background: #0079e7; }
.ambient-two { right: -230px; bottom: -180px; background: #00b2cf; animation-delay: -4s; }
.auth-shell { max-width: 1320px; width: calc(100% - 80px); margin: 0 auto; padding: 36px 0 24px; min-height: 100vh; display: flex; flex-direction: column; }
.auth-brand, .nav-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand strong, .nav-brand strong { display: block; font-family: 'Rajdhani', sans-serif; font-size: 20px; line-height: 1.15; letter-spacing: 1.5px; font-weight: 700; }
.auth-brand small, .nav-brand small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: 2.4px; color: #82a4bc; font-weight: 800; }
.brand-symbol { position: relative; flex: none; display: grid; place-items: center; width: 49px; height: 49px; color: #def6ff; border: 1px solid rgba(74, 190, 247, .65); background: linear-gradient(145deg, #0f4367, #071624); box-shadow: inset 0 0 13px rgba(49, 179, 248, .13), 0 0 22px rgba(24, 159, 235, .08); font: 700 27px 'Rajdhani', sans-serif; letter-spacing: -3px; clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%); }
.symbol-dot { color: #28d6ff; letter-spacing: 0; }
.brand-symbol.small { width: 42px; height: 42px; font-size: 23px; }
.secure-chip { display: flex; align-items: center; gap: 11px; margin-left: auto; border: 1px solid var(--border); border-radius: 100px; padding: 9px 15px; color: #9fbed2; font: 700 10px 'Rajdhani', sans-serif; letter-spacing: 2px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(65,229,175,.10), 0 0 16px rgba(65,229,175,.6); animation: pulse-glow 2.6s ease infinite; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr); align-items: stretch; gap: 20px; flex: 1; margin: 54px 0 30px; min-height: 610px; }
.auth-art { position: relative; display: flex; flex-direction: column; min-height: 610px; overflow: hidden; padding: 30px 34px; border: 1px solid rgba(65, 171, 234, .13); background: radial-gradient(circle at 48% 40%, rgba(7, 67, 106, .57), transparent 36%), radial-gradient(circle at 15% 95%, rgba(20, 75, 119, .3), transparent 37%), linear-gradient(135deg, rgba(9, 29, 50, .86), rgba(6, 19, 34, .62)); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.auth-art::before { content: ''; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(90deg, transparent 97%, rgba(50,167,234,.17) 100%), linear-gradient(transparent 97%, rgba(50,167,234,.17) 100%); background-size: 43px 43px; mask-image: radial-gradient(ellipse at 50% 42%, black, transparent 65%); }
.auth-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 49%, rgba(50, 191, 255, .07) 50%, transparent 51%); background-size: 100% 8px; opacity: .28; }
.art-topline, .art-meta, .card-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #8db7d0; font: 600 11px 'Rajdhani', sans-serif; letter-spacing: 2px; }
.crosshair { color: var(--accent); font-size: 18px; font-weight: 400; }
.signal-bars { color: #37bdff; letter-spacing: 3px; }
.holo { position: relative; width: min(365px, 85%); aspect-ratio: 1; margin: auto; display: grid; place-items: center; }
.ring { position: absolute; inset: 3%; border: 1px solid rgba(56, 190, 251, .22); border-radius: 50%; }
.ring-1 { inset: 0; border: 1px dashed rgba(62,198,255,.30); animation: spin 50s linear infinite; }
.ring-2 { inset: 14%; border: 2px solid transparent; border-top-color: #29a5ee; border-left-color: rgba(35, 184, 253, .25); border-bottom-color: rgba(35, 184, 253, .15); animation: spin 19s linear infinite reverse; box-shadow: 0 0 48px rgba(23,159,226,.16); }
.ring-3 { inset: 28%; border: 1px dashed rgba(69, 210, 254, .55); animation: spin 26s linear infinite; }
.ring-1::before, .ring-1::after { content: ''; position: absolute; top: -4px; left: calc(50% - 4px); background: #6ee6ff; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 16px rgba(49,188,255,.8); }
.ring-1::after { top: auto; bottom: -3px; left: calc(50% - 3px); width: 6px; height: 6px; }
.holo-core { position: relative; z-index: 1; width: 37%; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(40,154,220,.29), rgba(8,47,73,.96)); border: 1px solid #338db5; border-radius: 50%; color: #a1eaff; box-shadow: inset 0 0 34px rgba(22,152,209,.14), 0 0 70px rgba(16,140,213,.22); }
.holo-core svg { width: 70%; height: 70%; filter: drop-shadow(0 0 9px rgba(63,193,255,.33)); }
.orbit-label { position: absolute; z-index: 2; font: 600 10px 'Rajdhani', sans-serif; letter-spacing: 2px; color: #73b8e1; background: #081b2d; border: 1px solid rgba(51,171,232,.28); padding: 6px 11px; }
.orbit-label-1 { left: -8px; top: 39%; }
.orbit-label-2 { right: -6px; bottom: 20%; }
.art-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-block; color: var(--accent); font: 700 11px 'Rajdhani', sans-serif; letter-spacing: 2.7px; }
.art-copy h2 { font: 700 clamp(49px, 5vw, 74px)/.91 'Rajdhani', sans-serif; letter-spacing: -1.8px; margin: 13px 0 14px; }
.art-copy h2 em { font-style: normal; color: #5fd0fc; text-shadow: 0 0 25px rgba(50,182,243,.24); }
.art-copy p { margin: 0 0 28px; max-width: 405px; font-size: 13px; line-height: 1.8; color: #a5bfd1; }
.art-meta { border-top: 1px solid rgba(80,154,210,.2); padding-top: 16px; font-size: 10px; color: #6d96ad; }
.glass-panel { position: relative; border: 1px solid var(--border-strong); border-radius: 3px; padding: 40px clamp(24px, 3.5vw, 57px) 32px; background: linear-gradient(155deg, rgba(13, 35, 60, .91), rgba(6, 18, 33, .97)); box-shadow: var(--shadow), inset 0 1px rgba(197,235,255,.035); }
.glass-panel::before { content: ''; position: absolute; top: -1px; left: 0; width: 85px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); box-shadow: 0 0 20px #40c4ff; }
.login-panel { display: flex; flex-direction: column; justify-content: center; }
.panel-kicker { display: flex; align-items: center; gap: 10px; font: 700 11px 'Rajdhani', sans-serif; color: #8cb6cf; letter-spacing: 2.5px; }
.glass-panel h1 { font: 700 clamp(40px, 4.4vw, 59px)/1 'Rajdhani', sans-serif; letter-spacing: -.4px; margin: 29px 0 11px; }
.heading-dot { color: var(--accent); }
.muted { color: var(--muted); }
.intro { line-height: 1.7; font-size: 13px; margin: 0 0 32px; }
.form-stack { display: flex; flex-direction: column; }
.field-label { display: block; font: 700 11px 'Rajdhani', sans-serif; letter-spacing: 1.7px; color: #bcd4e7; margin: 0 0 10px; }
.field-label:not(:first-child) { margin-top: 19px; }
.field-input { display: block; width: 100%; min-height: 52px; padding: 14px 15px; background: #091b2c; border: 1px solid #254660; border-radius: 4px; color: #f0f9ff; outline: none; font-size: 13px; transition: border .2s, box-shadow .2s, background .2s; }
.field-input::placeholder { color: #5c7a92; }
.field-input:focus { outline: none; border-color: #4bb7ee; background: #0b2035; box-shadow: 0 0 0 3px rgba(38, 170, 231, .1); }
.field-input option { background: #091b2c; color: #e8f6ff; }
.icon-input { position: relative; }
.icon-input > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: #6b9bb8; stroke-linecap: round; stroke-width: 1.7; z-index: 1; pointer-events: none; }
.icon-input .field-input { padding-left: 46px; }
.password-field { position: relative; }
.password-field .field-input { padding-right: 76px; }
.reveal { position: absolute; z-index: 1; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #69aacf; font: 700 12px 'Rajdhani', sans-serif; letter-spacing: .8px; padding: 8px; }
.reveal:hover { color: #a6e9ff; }
.form-help { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 19px 0 26px; color: #728fa4; font-size: 11px; }
.form-help > span { display: flex; align-items: center; gap: 9px; }
.status-light { display: inline-block; vertical-align: middle; width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px rgba(58,222,167,.65); }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 53px; margin-top: 3px; border: 1px solid #61d5ff; border-radius: 3px; padding: 0 19px; background: linear-gradient(105deg, #22a9f7, #43caff); color: #06172a; box-shadow: 0 8px 33px rgba(29,155,244,.2); font: 700 17px 'Rajdhani', sans-serif; letter-spacing: .7px; transition: transform .2s, filter .2s, box-shadow .2s; }
.primary-button:hover { color: #04131e; filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 13px 36px rgba(29,155,244,.3); }
.primary-button span { font-size: 22px; }
.panel-bottom { margin-top: 29px; padding-top: 22px; border-top: 1px solid rgba(92,157,199,.17); color: #718fa6; font-size: 11px; line-height: 1.6; }
.lock-icon { color: var(--accent); font-size: 19px; margin-right: 5px; }
.auth-footer { text-align: center; margin: auto 0 0; font: 600 10px 'Rajdhani', sans-serif; letter-spacing: 2px; color: #5f7c91; }
.footer-separator { color: #1986c0; padding: 0 14px; }
.alert { padding: 13px 14px; border: 1px solid var(--border-strong); background: #10253a; color: #bbd8ed; font-size: 12px; line-height: 1.7; margin: 8px 0 19px; border-radius: 4px; }
.alert.error { border-color: rgba(255, 106, 130, .38); color: #ffd1d4; background: rgba(93,31,50,.27); }
.alert.success { border-color: rgba(66,222,165,.35); color: #b4f7dc; background: rgba(25,91,72,.28); }
.alert a { color: var(--accent-light); text-decoration: underline; }
.compact { max-width: 560px; padding-top: 55px; }
.compact .glass-panel { margin: 54px 0 25px; padding: 35px; }
.compact .glass-panel h1 { font-size: 43px; }
.compact .form-stack .primary-button { margin-top: 30px; }
.compact .field-input { min-height: 47px; }
.text-button { padding: 0; background: none; border: 0; color: var(--accent); text-decoration: underline; }
.dashboard-shell { max-width: 1300px; width: calc(100% - 72px); min-height: 100vh; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.role-badge, .online-pill { display: inline-flex; align-items: center; gap: 11px; border-radius: 100px; border: 1px solid rgba(73, 184, 240, .24); padding: 10px 15px; background: rgba(25,70,101,.18); color: #aed2eb; font: 700 12px 'Rajdhani',sans-serif; letter-spacing: 1.5px; }
.outline-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 17px; min-height: 39px; color: #bcdaf0; font: 700 14px 'Rajdhani',sans-serif; letter-spacing: .5px; background: rgba(17,57,89,.38); border: 1px solid rgba(87,166,219,.36); border-radius: 3px; transition: background .2s, border-color .2s; white-space: nowrap; }
.outline-button:hover { background: rgba(25,89,133,.52); border-color: #5cbef4; color: #edf9ff; }
.dashboard-main { padding: 45px 0 60px; }
.page-label { display: flex; align-items: center; gap: 13px; color: #76b5d9; font: 700 11px 'Rajdhani', sans-serif; letter-spacing: 3px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 18px 0 32px; }
.page-heading h1 { font: 700 clamp(39px, 5vw, 63px)/1.05 'Rajdhani',sans-serif; margin: 0 0 8px; }
.page-heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-box, .dash-card { background: linear-gradient(135deg, rgba(12,35,58,.92), rgba(8,22,38,.96)); border: 1px solid var(--border); border-radius: 5px; }
.stat-box { padding: 23px 25px; min-height: 135px; }
.stat-box > span { display: block; color: #7b9eb7; font: 700 12px 'Rajdhani',sans-serif; letter-spacing: 2px; }
.stat-box > strong { display: block; font: 700 55px/.98 'Rajdhani',sans-serif; color: #e8f8ff; margin: 12px 0 6px; }
.stat-box > strong.stat-text { font-size: 35px; color: #69d0ff; padding-top: 9px; }
.stat-box > small { color: #6586a0; font-size: 11px; }
.management-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr); gap: 20px; align-items: start; }
.overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.dash-card { padding: 29px; min-width: 0; }
.dash-card h2 { font: 700 31px 'Rajdhani',sans-serif; margin: 19px 0 5px; }
.dash-card > p { font-size: 12px; line-height: 1.75; margin: 0 0 25px; }
.card-index { color: #527993; }
.admin-form .field-input { min-height: 47px; }
.admin-form .primary-button { margin-top: 26px; }
.staff-list { display: flex; flex-direction: column; gap: 10px; }
.staff-entry { border: 1px solid rgba(88,155,201,.18); border-radius: 4px; background: #091a2a; }
.staff-entry summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 13px 12px; }
.staff-entry summary::-webkit-details-marker { display: none; }
.staff-avatar, .profile-avatar { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #2c6d9a; border-radius: 4px; background: linear-gradient(135deg, #15476c, #0b2a46); color: #94e6ff; font: 700 19px 'Rajdhani',sans-serif; }
.staff-info { flex: 1; min-width: 0; }
.staff-info strong, .profile-row strong { display: block; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.staff-info small, .profile-row small { display: block; margin-top: 5px; color: #7899af; font-size: 11px; overflow-wrap: anywhere; }
.state-badge { color: #91ecc3; font: 700 10px 'Rajdhani',sans-serif; letter-spacing: 1px; white-space: nowrap; }
.state-badge.inactive { color: #ff929d; }
.expand-icon { color: #5c9bbc; transition: transform .2s; }
.staff-entry[open] .expand-icon { transform: rotate(180deg); }
.staff-controls { padding: 14px; border-top: 1px solid var(--border); }
.staff-controls > small { display: block; margin-bottom: 15px; color: #7491a5; font-size: 10px; }
.staff-action-row { margin-bottom: 18px; }
.small-button { min-height: 37px; padding: 7px 11px; font-size: 12px; }
.reset-row { display: flex; gap: 9px; }
.reset-row .field-input { min-height: 38px; padding: 10px; font-size: 11px; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; color: #b7d2e3; border: 1px dashed rgba(104,172,214,.3); }
.empty-icon { font-size: 40px; color: #3aaddb; }
.empty-state strong { font-size: 13px; }
.empty-state small { font-size: 11px; color: #7694a8; }
.feature-card { min-height: 300px; }
.feature-icon { display: grid; place-items: center; margin: 30px 0 5px; width: 61px; height: 61px; background: radial-gradient(circle, rgba(62,182,248,.22), rgba(30,91,130,.09)); border: 1px solid rgba(65,184,243,.33); font-size: 26px; color: #55c9ff; border-radius: 50%; }
.feature-card p { max-width: 430px; }
.status-row { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); color: #b9d6e7; font-size: 12px; }
.status-row .status-light { margin-right: 7px; }
.profile-row { display: flex; align-items: center; gap: 13px; padding: 23px 0; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 53px; height: 53px; font-size: 26px; }
.profile-detail { padding-top: 18px; display: flex; justify-content: space-between; font-size: 12px; }
.profile-detail span { color: #7b9cb2; }
.profile-detail strong { color: #e6f6ff; }
.profile-detail .accent-text { color: var(--success); }
.inline-link { display: flex; justify-content: space-between; color: var(--accent-light); border-top: 1px solid var(--border); padding-top: 21px; margin-top: 22px; font: 700 14px 'Rajdhani', sans-serif; }
.dash-footer { margin-top: 35px; color: #5e7e95; font: 700 11px 'Rajdhani',sans-serif; letter-spacing: 1.6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 4px rgba(65,229,175,.08), 0 0 13px rgba(65,229,175,.45); } 50% { box-shadow: 0 0 0 7px rgba(65,229,175,.03), 0 0 23px rgba(65,229,175,.7); } }
@keyframes ambient-drift { to { transform: translate(45px, -35px); } }
@media (max-width: 1000px) { .auth-layout { grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr); } .art-copy h2 { font-size: 50px; } .auth-art { padding: 24px; } .management-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .auth-shell, .dashboard-shell { width: calc(100% - 36px); }
  .auth-shell { padding-top: 24px; }
  .secure-chip { display: none; }
  .auth-layout { display: flex; flex-direction: column; margin: 26px 0; gap: 15px; min-height: unset; }
  .auth-art { display: none; }
  .login-panel { min-height: 515px; padding: 35px 25px 28px; }
  .glass-panel h1 { font-size: 48px; }
  .auth-brand strong { font-size: 19px; }
  .auth-brand small { letter-spacing: 1.9px; }
  .auth-footer { font-size: 9px; letter-spacing: 1.3px; padding-bottom: 12px; }
  .footer-separator { padding: 0 6px; }
  .topbar { padding: 17px 0; }
  .nav-brand strong { font-size: 16px; }
  .nav-brand small { font-size: 8px; letter-spacing: 1.2px; }
  .nav-actions { gap: 10px; }
  .role-badge { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-main { padding-top: 30px; }
  .stat-grid, .management-grid, .overview-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box:last-child { grid-column: span 2; }
  .dash-card { padding: 22px; }
  .compact { padding-top: 28px; }
  .compact .glass-panel { margin-top: 35px; padding: 28px 24px; }
}
@media (max-width: 430px) {
  .auth-shell, .dashboard-shell { width: calc(100% - 28px); }
  .brand-symbol { width: 43px; height: 43px; font-size: 24px; }
  .auth-brand { gap: 11px; }
  .login-panel { padding: 30px 19px; }
  .glass-panel h1 { font-size: 44px; }
  .page-heading h1 { font-size: 40px; }
  .topbar .outline-button { padding: 9px 11px; }
  .stat-box { padding: 18px; min-height: 120px; }
  .stat-box > strong { font-size: 43px; }
  .reset-row { flex-direction: column; }
  .staff-entry summary { gap: 7px; }
  .staff-avatar { width: 31px; height: 31px; }
  .state-badge { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
