body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f5f3ff;
  color: #1a0049;
}

.alert-box {
  background-color: #f9dede;
  color: #a80000;
  padding: 12px 16px;
  border-radius: 6px;
  max-width: 420px;
  margin: 16px auto;
  text-align: center;
}

.alert-box a {
  color: #5f00b7;
  text-decoration: underline;
  margin: 0 6px;
}

.alert-box.hidden {
  display: none;
}

.signin-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.signin-box {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.logo {
  width: 180px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

/* floating animation */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

h2 {
  margin-bottom: 24px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
}

.checkbox {
  font-size: 13px;
  margin-bottom: 30px;
  text-align: left;
}

.btn-primary {
  background: #742bff;
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #7532e0;
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.btn-primary:hover {
  background: #5c1be0;
}

.signup-link {
  margin-top: 18px;
  font-size: 14px;
}

.signup-link a {
  color: #742bff;
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

.error-msg {
  color: red;
  margin: 8px 0;
  font-size: 13px;
}

.hidden {
  display: none;
}
