/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Page background */
body {
  height: 100vh;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login card */
.wrap {
  background: #ffffff;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.6s ease;
}

/* Title */
.wrap h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 600;
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #334155;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  transition: all 0.25s ease;
}

/* Input focus */
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Button hover */
button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

/* Error alert */
.alert.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Info alert */
.alert.info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .wrap {
    margin: 20px;
    padding: 30px 24px;
  }

  .wrap h1 {
    font-size: 22px;
  }
}
