/* Isolated styles for /web/login, forgot password, and reset password. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.a2e-login-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #f3f4f6;
  color: #1f2937;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.a2e-login {
  width: 100%;
  max-width: 400px;
}

.a2e-login-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.a2e-login-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
}

.a2e-login-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.a2e-login-card h1 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 22px;
  font-weight: 650;
  text-align: center;
}

.a2e-login-lead {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.a2e-login-field {
  margin-bottom: 14px;
}

.a2e-login-field label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.a2e-login-field input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 15px;
}

.a2e-login-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.a2e-login-field input.is-invalid {
  border-color: #dc2626;
}

.a2e-login-field .invalid-feedback {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
}

.a2e-login-row {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 16px;
}

.a2e-login-row a,
.a2e-login-back {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.a2e-login-row a:hover,
.a2e-login-back:hover {
  text-decoration: underline;
}

.a2e-login-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.a2e-login-submit:hover {
  background: #1e40af;
}

.a2e-login-back {
  display: inline-block;
  margin-top: 16px;
}

.a2e-login-home {
  display: block;
  margin-top: 18px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.a2e-login-home:hover {
  color: #111827;
}

.a2e-auth-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.a2e-auth-alert.is-success {
  background: #ecfdf3;
  color: #166534;
}

.a2e-auth-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
}
