:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #657282;
  --border: #dce2ea;
  --primary: #1f6feb;
  --primary-hover: #185abc;
  --success: #1a7f37;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

.login-panel {
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 32px;
}

.brand-block {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.supporting-text,
.placeholder-card p,
.dashboard-hero p,
.project-report-link span span,
.status-message {
  color: var(--muted);
  line-height: 1.5;
}

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

label {
  color: #263442;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(31, 111, 235, 0.18);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

a {
  color: inherit;
}

button:hover:not(:disabled) {
  background: var(--primary-hover);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-form button {
  margin-top: 8px;
}

.form-message {
  min-height: 22px;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-message[data-type="success"] {
  color: var(--success);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: 22px clamp(20px, 5vw, 56px);
}

.app-header h1 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.secondary-button:hover:not(:disabled) {
  background: #eef3f8;
}

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

.dashboard-hero {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
}

.dashboard-hero h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.placeholder-card {
  min-height: 160px;
  border: 1px dashed #aab6c4;
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.placeholder-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.reports-section {
  margin-top: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.status-message {
  margin-bottom: 14px;
}

.status-message[data-type="success"] {
  color: var(--success);
}

.status-message[data-type="error"] {
  color: var(--danger);
}

.projects-list {
  display: grid;
  gap: 12px;
}

.project-report-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.project-report-link:hover,
.project-report-link:focus-visible {
  border-color: rgba(31, 111, 235, 0.55);
  box-shadow: 0 12px 26px rgba(23, 32, 42, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.project-report-link span:first-child {
  display: grid;
  gap: 4px;
}

.project-report-link strong {
  font-size: 1rem;
}

.project-report-action {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--primary);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

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

  .project-report-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 16px;
  }

  .login-panel {
    padding: 24px;
  }
}
