:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08111f;
  color: #edf4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(38, 118, 255, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(0, 210, 160, 0.12), transparent 38%),
    #08111f;
}

button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(12, 25, 44, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #2676ff, #00b98b);
  font-weight: 800;
}

.brand strong,
.brand span,
.account strong,
.account span {
  display: block;
}

.brand span,
.account span {
  margin-top: 3px;
  color: #91a4bf;
  font-size: 13px;
}

h1 {
  margin: 34px 0 8px;
  font-size: clamp(28px, 5vw, 42px);
}

.subtitle,
.welcome p,
.panel-card p {
  color: #9cafc7;
  line-height: 1.6;
}

label {
  display: block;
  margin: 20px 0 8px;
  color: #c7d4e8;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #263b58;
  border-radius: 12px;
  outline: none;
  background: #091525;
  color: #edf4ff;
}

input:focus {
  border-color: #3885ff;
  box-shadow: 0 0 0 3px rgba(56, 133, 255, 0.15);
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #2676ff, #1762dc);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  filter: brightness(1.08);
}

.alert {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 93, 115, 0.35);
  border-radius: 12px;
  background: rgba(255, 93, 115, 0.1);
  color: #ff9cab;
}

footer {
  margin-top: 26px;
  color: #647994;
  font-size: 12px;
  text-align: center;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 17, 31, 0.88);
}

.account {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.account form {
  margin: 0;
}

.secondary-button {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #2b4160;
  background: #101f34;
}

.dashboard {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 54px 0;
}

.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.welcome h1 {
  margin: 7px 0;
}

.eyebrow {
  color: #53a1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.system-status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(44, 222, 164, 0.25);
  border-radius: 999px;
  background: rgba(44, 222, 164, 0.08);
  color: #73e6bf;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px #34d399;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.stat-card,
.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(13, 27, 47, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.stat-card {
  padding: 24px;
}

.stat-card span {
  color: #91a4bf;
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
}

.panel-card {
  margin-top: 22px;
  padding: 30px;
}

.panel-card h2 {
  margin: 8px 0;
}

@media (max-width: 850px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 25px;
  }

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