:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(12, 18, 30, 0.72);
  --panel-strong: rgba(16, 24, 39, 0.86);
  --line: rgba(226, 232, 240, 0.13);
  --line-strong: rgba(226, 232, 240, 0.2);
  --text: #f8fafc;
  --muted: #9aa7b7;
  --soft: #cbd5e1;
  --cyan: #67e8f9;
  --emerald: #6ee7b7;
  --gold: #f8d784;
  --danger: #fca5a5;
  --shadow: 0 24px 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;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.78), rgba(7, 11, 18, 0.94)),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#suiteCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: clamp(18px, 3vw, 34px);
}

.login-view,
.dashboard-view {
  min-height: calc(100svh - clamp(36px, 6vw, 68px));
}

.login-view {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: 28px;
}

.dashboard-view {
  display: none;
  width: min(100%, 1180px);
  margin: 0 auto;
  gap: clamp(28px, 5vw, 58px);
}

.app-shell[data-view="dashboard"] .login-view {
  display: none;
}

.app-shell[data-view="dashboard"] .dashboard-view {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.brand-lockup,
.topbar {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
}

.brand-lockup.compact .brand-mark {
  width: 36px;
  height: 36px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
}

.brand-mark span:nth-child(1) {
  transform: translateY(-9px);
}

.brand-mark span:nth-child(2) {
  width: 26px;
  background: var(--gold);
}

.brand-mark span:nth-child(3) {
  transform: translateY(9px);
  background: var(--emerald);
}

.brand-text {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel {
  width: min(100%, 450px);
  justify-self: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  animation: rise-in 520ms ease both;
}

.panel-heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.login-panel h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
}

.field {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 680;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 0 15px;
  color: var(--text);
  background: rgba(5, 9, 17, 0.72);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field input::placeholder {
  color: rgba(154, 167, 183, 0.64);
}

.field input:focus {
  border-color: rgba(103, 232, 249, 0.78);
  background: rgba(7, 12, 22, 0.94);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12);
}

.form-message {
  min-height: 22px;
  margin: 0 0 16px;
  color: var(--danger);
  font-size: 0.86rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 780;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  width: 100%;
  gap: 10px;
  color: #061018;
  background: linear-gradient(135deg, #f8d784, #67e8f9 56%, #6ee7b7);
  box-shadow: 0 16px 44px rgba(103, 232, 249, 0.2);
}

.secondary-button {
  width: 100%;
  margin-top: auto;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.ghost-button {
  min-width: 82px;
  padding: 0 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
}

.topbar {
  justify-content: space-between;
  gap: 16px;
}

.dashboard-heading {
  max-width: 760px;
  padding-top: clamp(18px, 5vw, 54px);
}

.dashboard-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.34rem);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
  align-self: start;
}

.module-card {
  position: relative;
  display: grid;
  min-height: 320px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: rise-in 560ms ease both;
}

.module-card:nth-child(2) {
  animation-delay: 90ms;
}

.module-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.13), transparent 48%);
  opacity: 0.76;
}

.module-card.emerald::before {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.13), transparent 48%);
}

.module-badge,
.module-content,
.secondary-button {
  position: relative;
  z-index: 1;
}

.module-badge {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.module-badge span {
  display: block;
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan);
}

.module-card.emerald .module-badge span {
  background: var(--emerald);
}

.module-badge span:nth-child(2) {
  width: 20px;
  margin-top: 5px;
  background: var(--gold);
}

.module-badge span:nth-child(3) {
  width: 13px;
  margin-top: 5px;
}

.module-content {
  align-self: end;
  margin: 46px 0 24px;
}

.module-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.28rem, 3vw, 1.72rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.module-content p {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 276px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 16px;
  }

  .login-view,
  .dashboard-view {
    min-height: calc(100svh - 32px);
  }

  .login-panel {
    border-radius: 18px;
  }

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

  .brand-text {
    max-width: 150px;
    line-height: 1.2;
  }

  .dashboard-heading {
    padding-top: 18px;
  }

  .module-card {
    min-height: 258px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
