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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.11), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: min(100%, 420px);
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  padding: 36px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}

.login-panel h1,
.dashboard-header h1,
.empty-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel h1 {
  font-size: 32px;
  line-height: 1.1;
}

.login-panel p {
  margin: 14px 0 26px;
  color: #4b5563;
  line-height: 1.6;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
}

.secondary-button {
  border: 1px solid #cfd6e3;
  background: #ffffff;
  color: #111827;
  padding: 0 16px;
  cursor: pointer;
}

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

.error-message {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b !important;
  padding: 12px 14px;
}

.dashboard-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.dashboard-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-label {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-header h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.empty-section {
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.info-card {
  min-height: 132px;
  padding: 22px;
}

.info-card span {
  display: block;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.info-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.25;
}

.empty-section {
  margin-top: 16px;
  padding: 32px;
}

.empty-section h2 {
  font-size: 26px;
}

.empty-section p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .auth-page {
    padding: 20px;
  }

  .login-panel {
    padding: 28px;
  }

  .dashboard-shell {
    width: min(100% - 28px, 1120px);
    padding: 28px 0;
  }

  .dashboard-header {
    display: block;
  }

  .dashboard-header form {
    margin-top: 20px;
  }

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