body {
  background: #0b2239;
  color: #fff;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  text-align: center;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

.login-header {
  margin-bottom: 2rem;
}

.login-logo {
  width: 230px;
}

.login-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
}

.login-header p {
  margin-top: 0.5rem;
  color: #cbd5e0;
  font-size: 1rem;
}

.login-form input {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 0rem;
  margin: 0.4rem 0;
  border: none;
  border-bottom: 1px solid #cbd5e0;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: white;
}

/* For Firefox */
input:-moz-autofill {
  background-color: transparent !important;
  box-shadow: none !important;
  color: white !important;
}

.login-form input::placeholder {
  color: #9ca3af;
}

.login-form input,
.login-form button.btn-login {
  width: 100%;
  box-sizing: border-box;
}

.login-form button.btn-login {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-top: 1.2rem;
  background: rgb(25,62,93);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}

.login-form button.btn-login:hover {
  background: rgb(53,152,218);
}

.message {
 /* margin: 1rem 0; */
  padding: 0.6rem;
  border-radius: 6px;
  background: #193e5d;
  color: #f0a6a6;
}

.signup-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cbd5e0;
}

.signup-text a {
  color: #60a5fa;
  text-decoration: none;
}

.signup-text a:hover {
  text-decoration: underline;
}

.login-footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.login-footer a {
  color: #60a5fa;
  text-decoration: none;
}

#password-checklist {
    padding-left: 0;
    text-align: left;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
#password-checklist li {
    list-style: none;
    margin: 3px 0;
    color: #d9534f;
}
#password-checklist li.valid {
    color: green;
}

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center;
}

/* password toggle layout */
.password-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-group input {
  width: 100%;
  padding-right: 44px; /* جا برای دکمه چشم */
  box-sizing: border-box;
  background: transparent; /* اگر می‌خوای همیشه ترنسپرنت بمونه */
}

/* دکمه چشم داخل فیلد */
.toggle-password {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  color: grey;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* رنگ‌ها وقتی هاور یا فیلد فوکوسه */
.toggle-password:hover,
.password-group input:focus + .toggle-password,
.toggle-password:focus {
  color: grey;
  outline: none;
}

/* اگر از فونت آیکون استفاده می‌کنی (fa) */
.toggle-password i { pointer-events: none; }

/* برای حالت کیبورد (دسترسی بهتر) */
.toggle-password:focus {
  box-shadow: 0 0 0 1px rgba(0,114,182,0.15);
  border-radius: 6px;
}

