:root {
  --ink: #070f24;
  --night: #050b1b;
  --slate: #101b38;
  --mist: #d7e5ff;
    --cyan: #3fd6ff;
    --lime: #8fffd2;
    --accent: #38bdf8;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(8, 12, 24, 0.65);
    --stroke: rgba(255, 255, 255, 0.15);
}

.dashboard-glass {
    background: rgba(10, 18, 40, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dashboard-module-card {
    min-height: 148px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-module-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Keep command side rails visible on desktop. They are hidden by layout media rules on mobile. */
.command-left-rail {
    display: flex;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



/* Minimal Icon Button style */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-box:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box i, .icon-box svg {
    width: 20px;
    height: 20px;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--mist);
  background: radial-gradient(circle at 15% 20%, rgba(63, 214, 255, 0.16), transparent 40%),
              radial-gradient(circle at 85% 15%, rgba(143, 255, 210, 0.12), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(73, 116, 255, 0.18), transparent 50%),
              linear-gradient(135deg, #050b1b 0%, #07162f 50%, #0b1c3d 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

a {
  color: var(--cyan);
}

a:hover {
  color: #7fe6ff;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.auth-header {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-logo img {
  width: clamp(280px, 38vw, 440px);
  height: auto;
  filter: drop-shadow(0 18px 45px rgba(64, 226, 255, 0.35)) brightness(1.1);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 80px;
}

.auth-main.auth-main-login {
  align-items: flex-start;
  padding-top: 0;
}

.auth-main.auth-main-login .auth-card {
  margin-top: -60px;
}

.auth-main.auth-main-signup {
  align-items: center;
  padding: 0 20px 10px;
}

.auth-main.auth-main-signup .auth-card {
  margin-top: -120px;
}

.auth-card {
    width: min(440px, 92vw);
    padding: 32px;
    border-radius: 28px;
    background: var(--glass-heavy);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--stroke);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.auth-card.wide {
  width: min(560px, 92vw);
}

.auth-card.auth-card-lg {
    width: min(520px, 94vw);
    padding: 40px;
}

.auth-card.auth-card-signup {
  width: min(720px, 96vw);
  padding: 24px 28px;
}

.auth-card.auth-card-signup .form-label {
  margin-bottom: 6px;
}

.auth-card.auth-card-signup .mb-3 {
  margin-bottom: 0.9rem !important;
}

.auth-card.auth-card-signup .mb-4 {
  margin-bottom: 0.85rem !important;
}

body.signup-page .auth-shell {
  min-height: 100svh;
}

body.signup-page .auth-header {
  padding: 8px 24px 0;
}

body.signup-page .auth-logo img {
  width: clamp(180px, 22vw, 280px);
}

body.signup-page .auth-actions .btn {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.signup-page .auth-card.auth-card-signup h2 {
  font-size: 24px;
}

body.signup-page .auth-card.auth-card-signup .auth-subtitle {
  font-size: 13px;
}

body.signup-page .auth-card.auth-card-signup .form-control {
  padding: 10px 12px;
  font-size: 15px;
}

body.signup-page .auth-card.auth-card-signup .btn.py-3 {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

body.signup-page .auth-card.auth-card-signup .auth-legal {
  margin-top: 0.75rem !important;
  font-size: 10.5px;
}

.auth-card.auth-card-lg h2 {
  font-size: 28px;
}

.auth-card.auth-card-lg .form-control {
  font-size: 16px;
  padding: 12px 14px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--mist);
  text-decoration: none;
  background: rgba(8, 12, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
  line-height: 1;
}

.auth-close:hover,
.auth-close:focus {
  color: #ffffff;
  background: var(--glass);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  width: 100%;
}

.auth-links.auth-links-right {
  justify-content: flex-end;
}

.auth-legal {
  color: rgba(215, 227, 255, 0.7);
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 12px;
}

.auth-legal a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(63, 214, 255, 0.6);
}

.auth-legal a:hover {
  color: #cfefff;
}

.auth-footer {
  padding: 16px 24px 28px;
  text-align: center;
}

.auth-footer .auth-legal {
  margin-top: 0;
}

.legal-card {
  width: min(980px, 94vw);
  padding: 36px;
  border-radius: 24px;
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(5, 10, 24, 0.5);
}

.legal-card h1 {
  font-size: clamp(28px, 3vw, 36px);
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 12px;
  color: rgba(215, 227, 255, 0.6);
  margin-bottom: 18px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 6px;
}

.legal-card h2 {
  font-size: 18px;
  color: #f4f7ff;
  margin-top: 22px;
}

.legal-card p,
.legal-card li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(215, 227, 255, 0.8);
}

.legal-card ul {
  padding-left: 18px;
}

.auth-or {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(215, 227, 255, 0.5);
  margin: 6px 0 12px;
}

.auth-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(215, 227, 255, 0.55);
  margin-bottom: 18px;
}

.auth-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.auth-hero h1 {
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 16px;
  text-shadow: 0 12px 36px rgba(10, 30, 80, 0.6);
}

.auth-hero p {
  color: rgba(215, 227, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.auth-hero .btn {
  min-width: 170px;
}

.form-label {
    color: rgba(215, 227, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-left: 4px;
}

.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: rgba(215, 227, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--mist);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-light {
  color: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 12, 24, 0.25);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--glass);
  color: #ffffff;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(63, 214, 255, 0.25));
}

.btn-icon-icons {
  gap: 22px;
}

.btn-icon-icons img {
  width: 38px;
  height: 38px;
}

.alert {
  background: rgba(8, 12, 24, 0.6);
  color: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .auth-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 0;
  }

  .auth-main {
    padding: 24px 16px 64px;
  }

  .auth-hero p {
    font-size: 16px;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #ffffff;
    color: #0b1224;
  }

  a {
    color: #0b1224;
    text-decoration: underline;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-header {
    padding: 0 0 16px;
    justify-content: flex-start;
  }

  .auth-actions {
    display: none;
  }

  .auth-logo img {
    filter: none;
    width: 260px;
  }

  .auth-main {
    padding: 0;
  }

  .legal-card {
    width: 100%;
    padding: 0;
    background: #ffffff;
    border: none;
    box-shadow: none;
  }

  .legal-card h1,
  .legal-card h2,
  .legal-card p,
  .legal-card li,
  .legal-meta {
    color: #0b1224;
  }

  .legal-actions {
    display: none;
  }
}
