:root {
  --bg: #dfe6ef;
  --card: #ffffff;
  --navy: #0b1f4d;
  --blue: #1f6fff;
  --text: #172033;
  --muted: #6b7280;
  --line: #cfd8e3;
  --danger: #c62828;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(145deg, #dbe5f0, #eef3f8);
  min-height: 100vh;
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 18px 50px rgba(13, 24, 45, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--navy);
}

.subtext {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: var(--blue);
}

button {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

.dashboard-shell {
  min-height: 100vh;
  background: #eef3f8;
  position: relative;
}

.topbar {
  height: 64px;
  padding: 0 20px;
  background: #0b1f4d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar h2 {
  margin: 0;
  font-size: 22px;
}

.topbar button {
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  color: #0b1f4d;
}

.dashboard-loader {
  position: absolute;
  inset: 64px 0 0 0;
  background: linear-gradient(145deg, #dbe5f0, #eef3f8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.loader-box {
  text-align: center;
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(13, 24, 45, 0.12);
}

.loader-box h3 {
  margin: 16px 0 8px;
  color: #0b1f4d;
  font-size: 24px;
}

.loader-box p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: 5px solid #dbe5f0;
  border-top: 5px solid #1f6fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

#dashboardFrame {
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  display: block;
  background: #fff;
  visibility: hidden;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
