:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --shadow: 0 24px 80px rgba(15, 23, 42, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, .18), transparent 32%),
    var(--bg);
  color: var(--text);
}

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

.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.02em;
}

.muted {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  font-size: 13px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

button {
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.error-box {
  background: var(--red-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}