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

:root {
  --navy: #0d0049;
  --blue: #0153cc;
  --ice: #98adff;
  --mist: #e7edff;
  --panel: rgba(7, 18, 58, 0.82);
  --panel-border: rgba(152, 173, 255, 0.2);
  --text: #f6f8ff;
  --text-dark: #0e1c46;
  --shadow: 0 30px 80px rgba(13, 0, 73, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(152, 173, 255, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(1, 83, 204, 0.28), transparent 24%),
    linear-gradient(135deg, #07123a 0%, #0d0049 48%, #02173f 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-page {
  overflow: hidden;
}

.login-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 480px);
  gap: 3rem;
  align-items: center;
  padding: 4rem 6vw;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-kicker,
.card-label,
.metric-label,
.topbar-label,
.login-label,
.drawer-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}

.login-copy h1,
.dashboard-hero h2,
.dashboard-card h3,
.login-card h2,
.topbar h1,
.app-drawer h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.login-copy h1 {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.96;
  max-width: 11ch;
}

.hero-copy,
.login-support,
.dashboard-card p,
.hero-glow-card p {
  color: rgba(246, 248, 255, 0.78);
  line-height: 1.7;
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.highlight-pill {
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(152, 173, 255, 0.12);
  border: 1px solid rgba(152, 173, 255, 0.22);
  backdrop-filter: blur(18px);
}

.login-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 16, 52, 0.85) 0%, rgba(6, 10, 35, 0.95) 100%);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-shine {
  position: absolute;
  inset: -50% auto auto -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(152, 173, 255, 0.55) 0%, rgba(152, 173, 255, 0) 70%);
  animation: pulse 8s ease-in-out infinite;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field-shell {
  display: grid;
  gap: 0.5rem;
}

.field-shell span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field-shell input {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(152, 173, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field-shell input:focus {
  border-color: rgba(152, 173, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(152, 173, 255, 0.18);
  transform: translateY(-1px);
}

.field-shell small,
.validation-summary {
  color: #ffd4dc;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.primary-button,
.ghost-button,
.menu-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  margin-top: 0.5rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ice), #bed0ff);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(152, 173, 255, 0.3);
}

.login-aurora {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}

.aurora-left {
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(152, 173, 255, 0.55) 0%, rgba(152, 173, 255, 0) 68%);
}

.aurora-right {
  right: -8rem;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(1, 83, 204, 0.55) 0%, rgba(1, 83, 204, 0) 68%);
  animation-delay: -6s;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.app-drawer {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(5, 10, 35, 0.7);
  border-right: 1px solid rgba(152, 173, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--ice));
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.drawer-nav {
  display: grid;
  gap: 0.75rem;
}

.drawer-link {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(152, 173, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.drawer-footer {
  display: grid;
  gap: 0.8rem;
}

.drawer-user {
  color: rgba(246, 248, 255, 0.76);
}

.ghost-button {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(152, 173, 255, 0.22);
}

.app-content {
  padding: 1.6rem 2rem 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-button {
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border-radius: 16px;
  background: rgba(152, 173, 255, 0.12);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: white;
}

.page-content {
  padding-top: 2rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.5fr minmax(260px, 340px);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-glow-card,
.dashboard-card {
  padding: 1.6rem;
  border-radius: 28px;
  background: rgba(8, 17, 50, 0.68);
  border: 1px solid rgba(152, 173, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(2, 10, 38, 0.3);
}

.hero-glow-card {
  background: linear-gradient(180deg, rgba(1, 83, 204, 0.3), rgba(13, 0, 73, 0.72));
}

.hero-glow-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  font-family: 'Space Grotesk', sans-serif;
}

.dashboard-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.accent-card {
  background: linear-gradient(180deg, rgba(152, 173, 255, 0.18), rgba(8, 17, 50, 0.7));
}

.app-scrim {
  display: none;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1rem, -1.25rem, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.75;
  }
}

@media (max-width: 960px) {
  .login-stage,
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    z-index: 40;
  }

  .app-shell.drawer-open .app-drawer {
    transform: translateX(0);
  }

  .app-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(2, 8, 30, 0.48);
  }

  .app-shell.drawer-open .app-scrim {
    display: block;
  }

  .menu-button {
    display: inline-flex;
  }

  .app-content,
  .login-stage {
    padding: 1.4rem;
  }
}

@media (max-width: 640px) {
  .login-copy h1 {
    font-size: 2.8rem;
  }

  .login-card,
  .dashboard-card,
  .hero-glow-card {
    border-radius: 24px;
  }
}