:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #172033;
  background: #f6f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.16), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
}

button,
input {
  font: inherit;
}

.center-page {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card,
.welcome-panel {
  width: min(480px, 100%);
  padding: 40px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(25, 38, 60, 0.09);
}

.eyebrow {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  margin: 18px 0 28px;
  color: #536174;
  line-height: 1.75;
}

.login-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #111827;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #b42318;
  font-weight: 700;
}

.app-page {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid #dbe5f2;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.brand {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.secondary-button {
  width: auto;
  min-height: 40px;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  box-shadow: none;
}

.dashboard {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 64px 24px;
}

.welcome-panel {
  width: 100%;
}

@media (max-width: 560px) {
  .auth-card,
  .welcome-panel {
    padding: 30px 22px;
  }

  .topbar {
    padding: 0 16px;
  }
}
