:root {
  --blue: #063f90;
  --blue-light: #0b5bae;
  --teal: #10c7bd;
  --green: #13c85a;
  --ink: #172339;
  --muted: #6c7485;
  --line: #e8edf5;
  --soft: #f5f8fc;
  --paper: #ffffff;
  --shadow: 0 18px 40px rgba(15, 30, 55, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eef3f9 0%, #f8fbff 45%, #eef6f5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.login-card,
.dashboard {
  width: min(1120px, 100%);
}

.login-card {
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-hero {
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2bffbd;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.login-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.92;
}

.login-form {
  padding: 24px 28px 28px;
}

label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #596274;
  margin-bottom: 14px;
}

input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

button.primary {
  width: 100%;
  background: var(--blue);
  color: #fff;
}

button.secondary {
  background: #eaf2ff;
  color: var(--blue);
}

.error {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffe8eb;
  color: #b42333;
  font-size: 12px;
  font-weight: 600;
}

.error.show {
  display: block;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: var(--shadow);
}

.dashboard-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.dashboard-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.report-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 30, 55, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 30, 55, 0.08);
}

.report-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.monthly {
  background: #eaf2ff;
  color: var(--blue);
}

.badge.biweekly {
  background: #e7fbf9;
  color: #06756f;
}

.badge.audits {
  background: #fff2ce;
  color: #966300;
}

.badge.operations {
  background: #edf9e3;
  color: #4f8d08;
}

.report-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.report-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.report-card .open-btn {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .dashboard-header {
    flex-direction: column;
  }
}
