/* style.css */

body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  margin: 40px;
  color: #333;
}

.container {
  max-width: 500px;
  margin: auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
  color: #007BFF;
  text-align: center;
}

/* Label and form field layout */
label {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="checkbox"],
button {
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
  font-size: 14px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* Only apply full width to real form buttons */
button[type="submit"] {
  width: 100%;
}


button:hover {
  background-color: #0056b3;
}

/* Success and error messages */
.confirmation {
  text-align: center;
  background-color: #e6ffed;
  border: 1px solid #28a745;
  padding: 20px;
  margin-top: 20px;
  border-radius: 5px;
  color: #155724;
}

.error {
  text-align: center;
  background-color: #ffe6e6;
  border: 1px solid #dc3545;
  padding: 20px;
  margin-top: 20px;
  border-radius: 5px;
  color: #721c24;
}

/* Form field wrapper */
.form-field {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

/* Input + eye toggle layout */
.input-with-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  gap: 8px;
}

.input-with-toggle input {
  flex: 1;
}

.eye-toggle {
  background-color: #e9f2ff; /* light blue background */
  border: 1px solid #007BFF;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 10px;
  color: #007BFF;
  height: 100%;
  border-radius: 4px;
  min-width: 60px;           /* Ensures "Show"/"Hide" are same size */
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.eye-toggle:hover {
  background-color: #007BFF;
  color: white;
}