body {
  font-family: Futura, sans-serif;
  background: linear-gradient(135deg, #dbeafe, #f0f9ff);
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 30px;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 10px;
  color: #4382ff;
}

.card {
  background-color: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 100%;
}

.floating-form .form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.floating-form input {
  width: 100%;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: none;
  outline: none;
  transition: border-color 0.3s;
}

.floating-form label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  background: white;
  padding: 0 0.25rem;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-form input:focus,
.floating-form input:not(:placeholder-shown):valid {
  border-color: #242739;
}

.floating-form input:focus + label,
.floating-form input:not(:placeholder-shown):valid + label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: #2e4fa2;
}

.password-wrapper {
  position: relative;
  margin-bottom: 1.8rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.btn {
  font-family: Futura, sans-serif;
  width: 100%;
  padding: 0.9rem;
  background-color: #427cf5;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2e4d9c;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

a {
  display: block;
  text-align: center;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.36);
  margin-top: 20px;
}


.success {
  color: #1f6e3e;
  margin-bottom: 1rem;
}

.criteria {
  text-align: left;
  background: rgba(255, 229, 229, 0.5);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.criteria p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.criteria p span {
  display: inline-block;
  width: 1.2em;
}

.criteria .valid span {
  content: "✔️";
}

.criteria .valid {
  color: #1f6e3e;
}

.site-header {
  background: #fff;
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.user-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.btn-logout {
  background: #c0392b;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn-logout:hover {
  opacity: 0.9;
}

.icon-eye {
  width: 20px;
  height: 20px;
}
