:root {
  --purple: #6a4fe0;
  --purple-dark: #4f3fd6;
  --text-dark: #1f2430;
  --text-muted: #8a8fa3;
  --border: #ececf2;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple) 60%, #8a6ef0);
}

.login-card {
  background: #fff;
  width: 380px;
  max-width: 90vw;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(30, 20, 80, 0.25);
}

.login-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.login-card h1 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.login-card p.sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  background: #f6f6fb;
}

.field input:focus { border-color: var(--purple); }

.submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

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

.errorlist {
  list-style: none;
  padding: 10px 12px;
  margin: 0 0 16px;
  background: #fdeaf1;
  color: #c0295c;
  border-radius: 8px;
  font-size: 13px;
}

.field-error {
  color: #c0295c;
  font-size: 12px;
  margin-top: 5px;
}

.login-card a { color: var(--purple); font-weight: 600; text-decoration: none; }
.login-card a:hover { text-decoration: underline; }
