/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f6fa; /* light clean background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #333;
}

/* Container */
.form-container {
  background: #fafafa; /* soft grey card */
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.6s ease-in-out;
}

.form-container h3 {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.form-container a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}
.form-container a:hover {
  text-decoration: underline;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #444;
  font-size: 0.9rem;
}

.simInp {
  margin-top: 0.3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.simInp:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.4);
}

/* Inline password strength message */
#message {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#message.error {
  color: #d9534f; /* red */
}

#message.success {
  color: #28a745; /* green */
}

/* Password rules */
form h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

ul {
  margin-left: 1rem;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Messages below form */
#error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Button */
.btndiv {
  text-align: center;
}

.submitBtn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  background: #0077cc;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.submitBtn:disabled {
  background: #b5b5b5;
  cursor: not-allowed;
}

.submitBtn:hover:not(:disabled) {
  background: #005fa3;
  transform: translateY(-1px);
}

.submitBtn:active:not(:disabled) {
  transform: translateY(1px);
}

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