:root {
  --bg: #0f1b2d;
  --bg-accent: #15325c;
  --card: #ffffff;
  --text: #1b2733;
  --muted: #6b7a8d;
  --border: #d8e0ea;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --ring: rgba(29, 78, 216, 0.25);
  --error: #c0392b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  width: 100%;
  background: var(--card);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 26px;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 11px 13px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
}

.remember input { cursor: pointer; }

.link {
  color: var(--brand);
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

.btn {
  width: 100%;
  padding: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: var(--brand-dark); }

.btn:active { transform: translateY(1px); }

.form-message {
  margin: 14px 0 0;
  min-height: 1.1em;
  font-size: 0.85rem;
  text-align: center;
  color: var(--error);
}

.page-footer {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  text-align: center;
}
