body {
   background: url("background.jpg") no-repeat center center / cover;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

h2 {
  margin-bottom: 20px;
  color: #00512e;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Password wrapper to allow an icon inside the input */
.password-wrapper {
  position: relative;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"],
.password-wrapper input[type="email"] {
  /* add right padding to make room for the icon */
  padding-right: 38px;
  box-sizing: border-box;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #00512e;
  background: transparent;
  border-radius: 4px;
}
.toggle-password:focus {
  outline: 2px solid rgba(0,81,46,0.15);
}
.password-wrapper input:focus,
.password-wrapper input:active {
  /* Remove visible outline/border on focus/active to avoid border flicker when toggling */
  outline: none !important;
  border-color: #ccc; /* keep same border color */
  box-shadow: none;
}

.password-wrapper .toggle-password,
.password-wrapper .toggle-password:focus,
.password-wrapper .toggle-password:active {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Provide a subtle hover background without changing layout */
.password-wrapper .toggle-password:hover {
  background: rgba(0,81,46,0.04);
}
.toggle-password i { pointer-events: none; }

button {
  background: #00512e;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background: #00713e;
}

/* Modal styles for reset password status messages */
.status-modal {
  display: none; /* shown via JS by switching to .open */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.status-modal.open { display: flex; }
.status-modal .dialog {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.status-modal h3 { margin-top: 0; color: #064E3B; }
.status-modal p { color: #222; margin: 12px 0 20px 0; }
.status-modal .controls { display:flex; gap:12px; justify-content:center; }
.status-modal .controls button { padding:8px 18px; border-radius:6px; }
.status-modal .controls .close { background:#064E3B; color:#fff; border:none; }
.status-modal .controls .goto { background:#0b8454; color:#fff; border:none; display:none; }
.status-modal.open .controls .goto { display:inline-block; }
