:root {
  --bg: #071426;
  --bg-soft: #0b1b31;
  --panel: rgba(15, 31, 56, 0.82);
  --panel-strong: rgba(20, 40, 70, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f6fb;
  --muted: #a8b4c6;
  --accent: #2d6bff;
  --accent-soft: #5b8dff;
  --success: #45d19b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 107, 255, 0.16), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(91, 141, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #061123 0%, #0a1930 52%, #071426 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-bar {
  position: absolute;
  width: 92px;
  height: 520px;
  border-radius: 26px 26px 12px 12px;
  background: linear-gradient(180deg, rgba(45, 107, 255, 0.68), rgba(45, 107, 255, 0.14));
  box-shadow: 0 0 80px rgba(45, 107, 255, 0.18);
  opacity: 0.35;
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.ambient-bar::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: 0;
  width: 44px;
  height: 44%;
  background: inherit;
  transform: skewY(42deg);
  border-radius: 0 0 12px 0;
}

.ambient-bar--one {
  left: 6%;
  top: 10%;
}

.ambient-bar--two {
  left: 21%;
  bottom: -18%;
  height: 620px;
  opacity: 0.22;
}

.ambient-bar--three {
  right: 5%;
  top: 18%;
  width: 140px;
  height: 440px;
  opacity: 0.18;
}

.ambient-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: rgba(45, 107, 255, 0.08);
  filter: blur(90px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
}

.view--active {
  display: flex;
}

.login-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.brand-mark {
  display: none;
}

.glass-card {
  background: linear-gradient(180deg, rgba(18, 36, 64, 0.92), rgba(12, 26, 48, 0.86));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  border-radius: var(--radius-lg);
  padding: 34px;
}

.login-card__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 36px);
}

h3 {
  margin-bottom: 8px;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label > span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #dbe4f2;
}

.login-form input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  padding: 0 15px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: rgba(91, 141, 255, .8);
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 0 4px rgba(45, 107, 255, .12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.icon-button {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox span {
  margin: 0 !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.secure-note {
  font-size: 12px;
  color: #7d8aa0;
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #4f83ff 100%);
  box-shadow: 0 14px 36px rgba(45, 107, 255, .26);
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 40px rgba(45, 107, 255, .32);
}

.primary-button--compact {
  width: 150px;
  min-height: 46px;
  margin-top: 12px;
}

.button-arrow {
  font-size: 20px;
}

.login-hint {
  margin: 0;
  font-size: 12px;
  color: #7d8aa0;
  text-align: center;
}

.login-footer {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #78879b;
}

#dashboard-view {
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(7, 18, 34, .84);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 3;
}

.sidebar__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 26px;
}

.sidebar__brand strong,
.sidebar__brand small {
  display: block;
}

.sidebar__brand small {
  margin-top: 3px;
  color: var(--muted);
}

.mini-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.mini-mark span {
  display: block;
  width: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

.mini-mark span:nth-child(1) { height: 26px; }
.mini-mark span:nth-child(2) { height: 34px; }
.mini-mark span:nth-child(3) { height: 30px; }

.sidebar__nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #9eabc0;
  background: transparent;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,.045);
  transform: translateX(2px);
}

.nav-item--active {
  color: white;
  background: linear-gradient(90deg, rgba(45,107,255,.22), rgba(45,107,255,.06));
  border: 1px solid rgba(91,141,255,.18);
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9eabc0;
  font-size: 12px;
  padding: 0 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(69,209,155,.6);
}

.logout-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #a8b4c6;
  background: rgba(255,255,255,.025);
}

.dashboard {
  width: calc(100% - 250px);
  margin-left: 250px;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.clock {
  text-align: right;
}

.clock strong,
.clock span {
  display: block;
}

.clock strong {
  font-size: 24px;
}

.clock span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45,107,255,.85), rgba(91,141,255,.42));
  font-weight: 700;
  font-size: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 2fr) repeat(3, minmax(210px, 1fr));
  gap: 18px;
}

.workspace-card,
.shortcut-card,
.panel {
  border-radius: var(--radius-md);
}

.workspace-card {
  min-height: 290px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  position: relative;
}

.workspace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(45,107,255,.18), transparent 38%);
}

.workspace-card__content,
.workspace-card__visual {
  position: relative;
  z-index: 1;
}

.workspace-card h3 {
  font-size: 28px;
}

.workspace-card p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: #cbd8ee;
  font-size: 21px;
}

.tile-icon--primary {
  background: rgba(45,107,255,.15);
  border-color: rgba(91,141,255,.26);
  color: #8eb0ff;
}

.workspace-card__visual {
  display: grid;
  place-items: center;
}

.monitor {
  width: min(100%, 250px);
}

.monitor__screen {
  min-height: 150px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(28, 58, 103, .96), rgba(10, 27, 52, .92));
  border: 1px solid rgba(123, 160, 255, .22);
  box-shadow: 0 22px 50px rgba(0,0,0,.36);
  transform: perspective(800px) rotateY(-10deg) rotateX(4deg);
}

.screen-line {
  height: 6px;
  width: 50%;
  border-radius: 6px;
  background: rgba(255,255,255,.16);
  margin-bottom: 10px;
}

.screen-line--wide { width: 75%; }
.screen-line--small { width: 36%; }

.screen-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.screen-grid span {
  height: 38px;
  border-radius: 10px;
  background: rgba(45,107,255,.18);
  border: 1px solid rgba(91,141,255,.14);
}

.monitor__stand {
  width: 90px;
  height: 28px;
  margin: -2px auto 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(40, 68, 112, .9), rgba(14, 32, 58, .92));
  clip-path: polygon(30% 0, 70% 0, 90% 100%, 10% 100%);
}

.shortcut-card {
  min-height: 290px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.shortcut-card:hover,
.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(91,141,255,.22);
}

.shortcut-card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #7890b8;
}

.content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr;
  gap: 18px;
}

.panel {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-soft);
  font-size: 12px;
}

.timeline,
.news-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
}

.timeline-item time {
  font-weight: 700;
  color: #bed0f0;
}

.timeline-item strong,
.timeline-item span {
  display: block;
}

.timeline-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item--accent {
  background: linear-gradient(90deg, rgba(45,107,255,.13), rgba(255,255,255,.02));
  border-color: rgba(91,141,255,.16);
}

.news-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  transition: background 160ms ease, transform 160ms ease;
}

.news-item:hover {
  background: rgba(255,255,255,.045);
  transform: translateX(2px);
}

.news-item p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.news-link {
  color: var(--accent-soft);
  font-size: 12px;
}

.news-badge {
  align-self: start;
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(45,107,255,.18);
  color: #9ab7ff;
}

.news-badge--muted {
  background: rgba(255,255,255,.07);
  color: #b8c3d4;
}

.news-badge--soft {
  background: rgba(88, 202, 164, .12);
  color: #80d8bc;
}

.panel--announcement {
  background:
    linear-gradient(180deg, rgba(21, 42, 72, .9), rgba(11, 27, 49, .92)),
    radial-gradient(circle at 90% 10%, rgba(45,107,255,.24), transparent 45%);
}

.panel--announcement p {
  color: var(--muted);
  line-height: 1.65;
}

.secondary-button {
  min-height: 44px;
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(91,141,255,.22);
  border-radius: 13px;
  color: #c8d7f2;
  background: rgba(45,107,255,.08);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  color: white;
  background: rgba(11, 27, 49, .96);
  border: 1px solid rgba(91,141,255,.22);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1320px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .shortcut-card:last-child {
    grid-column: 2 / 4;
    min-height: 170px;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel--announcement {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 84px;
  }

  .sidebar__brand div:last-child,
  .nav-item span,
  .service-status span,
  .logout-button {
    display: none;
  }

  .sidebar__brand {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
  }

  .dashboard {
    width: calc(100% - 84px);
    margin-left: 84px;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-card:last-child,
  .panel--announcement {
    grid-column: auto;
  }

  .shortcut-card {
    min-height: 170px;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: none;
  }

  .dashboard {
    width: 100%;
    margin-left: 0;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar__right {
    gap: 10px;
  }

  .clock {
    display: none;
  }

  .user-chip div:last-child {
    display: none;
  }

  .workspace-card {
    grid-template-columns: 1fr;
  }

  .workspace-card__visual {
    display: none;
  }

  .login-card {
    padding: 24px;
  }

  .login-card__heading {
    align-items: flex-start;
  }
}




.sidebar__brand--icon-only {
  justify-content: center;
  padding-bottom: 30px;
}

.sidebar__brand--icon-only .mini-mark {
  width: 42px;
  height: 42px;
}



.login-card__heading--minimal {
  margin-bottom: 34px;
  justify-content: center;
  text-align: center;
}

.login-card__heading--minimal > div {
  width: 100%;
}

.login-card__heading--minimal h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.login-card__heading--minimal .muted {
  max-width: 560px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
}


/* v4: compact single-line login heading */
.login-shell {
  width: min(100%, 860px);
}

.login-card__heading--minimal h1 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .login-shell {
    width: min(100%, 620px);
  }

  .login-card__heading--minimal h1 {
    white-space: normal;
    font-size: clamp(28px, 8vw, 36px);
  }
}
