* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background:
    linear-gradient(135deg, rgba(34,197,94,.10), transparent 34%),
    linear-gradient(315deg, rgba(17,24,39,.08), transparent 38%),
    #f7faf8;
}

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

.auth-card {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  padding: 28px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}

.auth-logo-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 15px;
}

.auth-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0;
}

.auth-subtitle {
  margin: 0 0 22px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

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

.auth-field input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14px;
  color: #111;
  background: #fff;
}

.auth-field input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .08);
}

.auth-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.35;
}

.auth-btn {
  width: 100%;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 11px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.auth-btn:hover {
  background: #2b2b2b;
}

.auth-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.auth-links a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}
