:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(15, 30, 48, 0.88);
  --panel-strong: #0d1d30;
  --border: rgba(148, 181, 213, 0.15);
  --text: #f5f9ff;
  --muted: #91a6bb;
  --orange: #ff7a1a;
  --cyan: #21c6d7;
  --green: #43d19e;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(25, 161, 181, 0.12), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(255, 122, 26, 0.09), transparent 30%),
    linear-gradient(145deg, #06101c, #091a2c 54%, #07121f);
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); pointer-events: none; opacity: 0.2; }
.ambient-one { width: 360px; height: 360px; left: -170px; top: 20%; background: #13bfd0; }
.ambient-two { width: 420px; height: 420px; right: -250px; bottom: -120px; background: #ff7a1a; }
.shell { position: relative; min-height: 100vh; z-index: 1; }

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}
.brand-panel { padding: clamp(56px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; max-width: 900px; }
.brand-mark { width: 96px; height: 96px; position: relative; display: grid; place-items: center; margin-bottom: 72px; }
.brand-mark strong { position: relative; z-index: 2; font-size: 22px; letter-spacing: 0.12em; color: white; }
.signal { position: absolute; inset: 0; border: 1px solid rgba(33, 198, 215, 0.42); border-radius: 22px; transform: rotate(45deg); }
.signal-b { inset: 9px; border-color: rgba(255, 122, 26, 0.55); }
.signal-c { inset: 20px; background: linear-gradient(145deg, rgba(33, 198, 215, 0.28), rgba(255, 122, 26, 0.18)); border: 0; }
.brand-logo { width: min(430px, 82%); height: auto; margin-bottom: 64px; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.3)); }
.eyebrow { color: var(--cyan); letter-spacing: 0.18em; font-size: 12px; font-weight: 800; margin: 0 0 18px; }
.brand-panel h1 { max-width: 760px; font-size: clamp(44px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.055em; margin: 0; }
.lead { max-width: 690px; color: #a7bbce; font-size: 18px; line-height: 1.75; margin: 30px 0 48px; }
.route-visual { display: flex; align-items: center; gap: 13px; color: #6f879e; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.route-visual i { display: block; width: clamp(25px, 4vw, 80px); height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(33, 198, 215, 0.1)); position: relative; }
.route-visual i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }

.login-card {
  align-self: center;
  justify-self: center;
  width: min(440px, calc(100% - 48px));
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(18, 38, 61, 0.95), rgba(9, 23, 38, 0.93));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mobile-brand { display: none; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-brand img { width: min(210px, 68%); height: auto; }
.mobile-brand span { color: #8ca5bc; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; color: #a8bfd3; background: rgba(67, 209, 158, 0.08); border: 1px solid rgba(67, 209, 158, 0.18); border-radius: 999px; padding: 8px 12px; font-size: 12px; }
.status-pill span, .access-chip > span, .online-dot i { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 14px rgba(67, 209, 158, 0.8); border-radius: 50%; }
.login-card h2 { margin: 30px 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.login-card > p { margin: 0 0 30px; color: var(--muted); }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #bacbda; font-size: 13px; font-weight: 700; }
label small { color: #69839b; font-weight: 500; line-height: 1.45; }
input {
  width: 100%;
  border: 1px solid rgba(151, 183, 214, 0.2);
  background: rgba(3, 13, 24, 0.58);
  color: white;
  border-radius: 12px;
  padding: 14px 15px;
  outline: none;
  transition: 0.2s ease;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(33, 198, 215, 0.12); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.icon-button { position: absolute; right: 7px; top: 7px; bottom: 7px; border: 0; border-left: 1px solid var(--border); background: transparent; color: #8ca5bc; padding: 0 10px; cursor: pointer; font-size: 12px; }
.primary-button, .secondary-button, .filter { border: 0; cursor: pointer; color: white; }
.primary-button { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 15px 18px; border-radius: 12px; background: linear-gradient(120deg, #ec6811, #ff8a25); font-weight: 800; box-shadow: 0 12px 24px rgba(255, 122, 26, 0.18); }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button:disabled { opacity: 0.6; cursor: wait; }
.primary-button b { font-size: 20px; }
.error-box { padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 93, 93, 0.3); background: rgba(255, 70, 70, 0.08); color: #ffb0b0; font-size: 13px; line-height: 1.4; }
.login-footnote { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 22px; color: #718aa1; font-size: 12px; }
.shield { color: var(--cyan); }

.dashboard { width: min(1480px, calc(100% - 52px)); margin: 0 auto; padding: 28px 0 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 28px; border-bottom: 1px solid var(--border); }
.topbar-brand, .topbar-actions, .access-chip { display: flex; align-items: center; }
.topbar-brand { gap: 13px; }
.topbar-logo { width: 150px; height: auto; max-height: 58px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22)); }
.mini-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, var(--cyan), #1687aa); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; }
.topbar-brand div:last-child { display: grid; gap: 2px; }
.topbar-brand strong { letter-spacing: -0.01em; }
.topbar-brand span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.topbar-actions { gap: 14px; }
.access-chip { gap: 10px; border-right: 1px solid var(--border); padding-right: 18px; }
.access-chip div { display: grid; gap: 1px; }
.access-chip b { font-size: 12px; }
.access-chip small { color: var(--muted); }
.secondary-button { background: rgba(144, 173, 201, 0.1); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.secondary-button:hover { background: rgba(144, 173, 201, 0.16); }
.dashboard-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding: 64px 0 36px; }
.dashboard-heading h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 54px); letter-spacing: -0.045em; }
.dashboard-heading h1 span { color: #ff9b55; }
.dashboard-heading h1 small { display: inline-block; vertical-align: middle; padding: 6px 9px; border: 1px solid rgba(33, 198, 215, 0.28); border-radius: 999px; background: rgba(33, 198, 215, 0.1); color: var(--cyan); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.dashboard-heading > div > p:last-child { color: var(--muted); margin: 0; }
.session-card { min-width: 180px; text-align: right; padding: 14px 0; }
.session-card span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.session-card strong { color: #c8d7e5; }
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.search-box { position: relative; width: min(350px, 100%); }
.search-box span { position: absolute; left: 15px; top: 9px; color: #738da5; font-size: 23px; z-index: 1; }
.search-box input { padding-left: 43px; background: rgba(12, 27, 44, 0.8); }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter { background: transparent; color: var(--muted); padding: 9px 13px; border-radius: 10px; border: 1px solid transparent; font-size: 12px; }
.filter:hover { color: white; }
.filter.active { color: white; background: rgba(33, 198, 215, 0.1); border-color: rgba(33, 198, 215, 0.25); }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-card {
  --accent: #21c6d7;
  position: relative;
  min-height: 264px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(16, 35, 56, 0.92), rgba(8, 22, 37, 0.94));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.app-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 78%); opacity: 0.8; }
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent), transparent 55%); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24); }
.color-amber { --accent: #f5b942; }.color-green { --accent: #43d19e; }.color-violet { --accent: #a884ff; }
.color-blue { --accent: #4f9dff; }.color-orange { --accent: #ff7a1a; }.color-indigo { --accent: #6f7cff; }.color-cyan { --accent: #21c6d7; }
.app-card-top, .app-footer { display: flex; align-items: center; justify-content: space-between; }
.app-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent), transparent 88%); border: 1px solid color-mix(in srgb, var(--accent), transparent 78%); }
.app-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.online-dot { display: inline-flex; align-items: center; gap: 6px; color: #7891a8; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.app-content { margin-top: 30px; flex: 1; }
.app-category { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.app-content h2 { margin: 7px 0 8px; font-size: 21px; letter-spacing: -0.025em; }
.app-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.app-footer { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); color: #7c94aa; font-size: 11px; }
.app-footer code { color: #9cb1c3; background: rgba(255, 255, 255, 0.04); padding: 4px 7px; border-radius: 6px; }
.app-footer span { transition: color 0.2s ease; }
.app-card:hover .app-footer span { color: var(--accent); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 18px; }
footer { display: flex; justify-content: space-between; gap: 20px; color: #526c84; font-size: 11px; padding: 40px 2px 0; }

@media (max-width: 1120px) {
  .login-layout { grid-template-columns: 1fr 460px; }
  .brand-panel { padding: 70px 50px; }
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    width: 100%;
    padding: 28px 14px;
  }
  .brand-panel { display: none; }
  .login-card { grid-column: 1; max-width: 440px; }
  .mobile-brand { display: flex; margin-bottom: 28px; }
  .dashboard-heading { padding-top: 42px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filters { justify-content: flex-start; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .login-layout { align-items: start; padding: 14px; }
  .login-card { width: 100%; padding: 28px 22px; border-radius: 22px; }
  .login-card h2 { font-size: 28px; }
  .login-card > p { line-height: 1.55; }
  .login-card input { min-width: 0; font-size: 16px; }
  .status-pill { max-width: 100%; }
  .topbar-logo { width: 128px; }
  .dashboard { width: calc(100% - 28px); padding-top: 16px; }
  .topbar-brand span, .access-chip div, .session-card { display: none; }
  .access-chip { padding-right: 12px; }
  .dashboard-heading { padding: 40px 0 28px; }
  .dashboard-heading h1 { font-size: 35px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 235px; }
  footer { flex-direction: column; }
}

