:root {
  --text: #1f2933;
  --muted: #667085;
  --border: #d0d5dd;
  --background: #f6f7f9;
  --panel: #ffffff;
  --button: #1f6feb;
  --button-hover: #185abc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}

.login-body {
  min-height: 100vh;
}

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

.login-form {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.login-form h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.75rem;
}

.login-form label {
  font-weight: bold;
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}

.login-form input:focus {
  border-color: var(--button);
  outline: 2px solid rgba(31, 111, 235, 0.18);
}

.login-form button {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--button);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background: var(--button-hover);
}

.login-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.it-note {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.4;
}

.login-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.login-message.error {
  color: #b42318;
}

.dashboard-body {
  min-height: 100vh;
  background: #eef2f6;
}

.dashboard-page {
  min-height: 100vh;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 24px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.dashboard-label {
  margin: 0 0 8px;
  color: var(--button);
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 2rem;
}

.dashboard-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-header button,
.dashboard-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--button);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-header button:hover,
.dashboard-action:hover {
  background: var(--button-hover);
}

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

.metric-card,
.tool-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}

.metric-card {
  padding: 22px;
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.tool-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 28px 32px;
}

.tool-panel h2 {
  margin: 0;
  font-size: 1.4rem;
}

.tool-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .dashboard-header,
  .tool-panel {
    align-items: stretch;
    flex-direction: column;
  }

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