@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  background: radial-gradient(circle at 50% 20%, #1b2a4a 0%, #05070f 70%);
  color: #eaf0ff;
}

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

.auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 20, 38, 0.85);
  border: 1px solid rgba(120, 160, 255, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-align: center;
  color: #ffd76a;
  text-shadow: 0 0 12px rgba(255, 200, 80, 0.4);
}

.auth-card p.sub {
  margin: 0 0 24px;
  text-align: center;
  font-size: 13px;
  color: #9fb0d8;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #b9c6e8;
}

.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(120, 160, 255, 0.3);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus {
  border-color: #ffd76a;
  box-shadow: 0 0 0 3px rgba(255, 215, 106, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd76a, #ff9f43);
  color: #26160a;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .1s ease, filter .15s ease;
}

.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:active { transform: scale(0.98); }

.alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.alert-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ffb3b3;
}

.alert-success {
  background: rgba(80, 220, 140, 0.12);
  border: 1px solid rgba(80, 220, 140, 0.4);
  color: #b3ffce;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #9fb0d8;
}

.auth-links a {
  color: #ffd76a;
  text-decoration: none;
}

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