* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}
.logo .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}
.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
}
.logo p {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 6px;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert-error   { background: #450a0a; border: 1px solid #b91c1c; color: #fca5a5; }
.alert-success { background: #052e16; border: 1px solid #166534; color: #86efac; }
.alert-info    { background: #0c1a2e; border: 1px solid #1e40af; color: #93c5fd; }

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 11px 16px;
  margin-top: 8px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button[type="submit"]:hover  { background: #0284c7; }
button[type="submit"]:active { background: #0369a1; }

.links {
  text-align: center;
  margin-top: 22px;
  font-size: 0.875rem;
  color: #64748b;
}
.links a {
  color: #38bdf8;
  text-decoration: none;
}
.links a:hover { text-decoration: underline; }
.links .sep { margin: 0 8px; }
