/* User-facing styles (login, change password) */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 15px env(safe-area-inset-bottom);
}

.message-container {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 25px;
  box-sizing: border-box;
}

.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo img {
  width: 80px;
}

h1 {
  text-align: center;
  color: #1e3c72;
  font-size: 20px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

button.primary {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #1e3c72;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button.primary:hover {
  background: #16305a;
}

.error {
  background: #ffe3e3;
  color: #c0392b;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 13px;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 13px;
}

.note {
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
  color: #666;
}

.info {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 20px;
}

/* Email input wrapper */
.email-input-wrapper {
  display: flex;
  align-items: stretch;
}

.email-input-wrapper input {
  flex: 1;
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.email-domain {
  display: flex;
  align-items: center;
  background: #e5e7eb;
  padding: 0 12px;
  font-size: 14px;
  color: #374151;
  border: 1px solid #ccc;
  border-radius: 0 6px 6px 0;
  white-space: nowrap;
}

/* Password input wrapper */
.password-wrapper {
  display: flex;
  align-items: stretch;
  position: relative;
}

.password-wrapper input {
  flex: 1;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
}

.toggle-password:hover {
  color: #1e3c72;
}

.toggle-password .eye-icon {
  width: 20px;
  height: 20px;
}
