/* Resets & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 100% 0%, #a1e9ff 0%, rgba(255,255,255,0) 60%),
              radial-gradient(1200px 800px at 0% 100%, #c6f1ff 0%, rgba(255,255,255,0) 60%),
              linear-gradient(135deg, #4facfe, #00f2fe);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Card */
.auth-container {

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  padding: 20px;
  font-family: "Inter", sans-serif;

}

.auth-container h2 {
  margin: 0 0 18px;
  font-size: 26px;
  text-align: center;
  color: #0f172a;
}

/* Messages */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Form */
form { display: grid; gap: 12px; }
label { font-size: 14px; color: #334155; }
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* Button */
.auth-btn {
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .05s ease, filter .2s;
}
.auth-btn:hover { filter: brightness(1.05); }
.auth-btn:active { transform: translateY(1px); }

/* Links */
.auth-links {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}
.auth-links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 420px) {
  .auth-container { padding: 22px 18px; border-radius: 14px; }
  .auth-container h2 { font-size: 22px; }
}
