* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #22c55e;
  --danger: #ef4444;
}

html, body {
  min-height: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, #081120 0%, #07111f 100%);
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-left {
  top: -120px;
  left: -120px;
  background: rgba(96, 165, 250, 0.35);
}

.bg-orb-right {
  right: -120px;
  bottom: -120px;
  background: rgba(34, 197, 94, 0.25);
}

.login-page,
.dashboard-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.landing-shell,
.dashboard-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
}

.landing-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-panel,
.login-card,
.dashboard-header,
.session-banner,
.dashboard-copy,
.app-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.24);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-panel h1,
.dashboard-header h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.feature-stack {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.11);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  font-weight: 700;
  flex: 0 0 auto;
}

.feature-row strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.feature-row p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.hero-note {
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  border-radius: 28px;
  padding: 34px;
  background: var(--panel-strong);
}

.login-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h2 {
  margin-top: 14px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.form-group {
  margin-top: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.5);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.remember-pill {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbeafe;
  font-size: 0.92rem;
}

.error-message {
  min-height: 1.2em;
  margin-top: 12px;
  color: #fecaca;
  font-size: 0.92rem;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn-primary {
  margin-top: 16px;
  color: #03111f;
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 55%, #34d399 100%);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover,
.btn-secondary:hover,
.app-card:hover {
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.login-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.dashboard-header {
  border-radius: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header h1 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.btn-secondary {
  width: auto;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
}

.session-banner,
.dashboard-copy {
  border-radius: 22px;
  padding: 18px 22px;
}

.session-banner {
  color: #e0f2fe;
  font-weight: 600;
}

.dashboard-copy {
  color: var(--muted);
  line-height: 1.6;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.app-card {
  border-radius: 22px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: center;
  border-color: rgba(148, 163, 184, 0.16);
}

.app-card:hover {
  border-color: var(--accent);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(96, 165, 250, 0.12);
  font-size: 1.7rem;
  overflow: hidden;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-info h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.app-info p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.app-arrow {
  color: #cbd5e1;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .landing-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-page,
  .dashboard-page {
    padding: 16px;
  }

  .hero-panel,
  .login-card,
  .dashboard-header,
  .session-banner,
  .dashboard-copy {
    border-radius: 20px;
  }

  .hero-panel,
  .login-card,
  .dashboard-header {
    padding: 22px;
  }

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

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

.app-icon-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.15);
  text-align: center;
}
