/* Preserve the spacing previously supplied by this stylesheet to portal forms. */
.form-group { margin-bottom: 1.2rem; }

body.body_login {
  background: #f6f5f3;
  color: #252323;
  -webkit-font-smoothing: antialiased;
}

.body_login #main { padding: 0; }
.login-shell, .login-shell * { box-sizing: border-box; }
.login-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.login-shell p { padding: 0; margin: 0; }
.login-brand { min-height: 80px; display: flex; align-items: center; gap: 23px; padding: 20px 48px; background: #fff; border-bottom: 1px solid #e9e7e4; }
.login-brand a { display: flex; flex-shrink: 0; border-radius: 3px; }
.login-brand img { width: 180px; height: 32px; object-fit: contain; }
.login-brand-divider { height: 25px; width: 1px; background: #dedbd8; }
.login-brand > span:last-child { color: #605b59; font-size: 15px; letter-spacing: .02em; }
.login-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px 24px; }
.login-card { width: 100%; max-width: 440px; padding: 38px 40px 30px; background: #fff; border: 1px solid #e5e2de; border-radius: 16px; box-shadow: 0 8px 32px #28201806; }
.login-eyebrow { color: #c90009; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.login-intro h1 { margin: 12px 0 10px; font-size: 32px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.login-description { color: #6b6562; font-size: 14px; line-height: 1.6; }
.login-intro { margin-bottom: 26px; }
.login-destination { display: flex; align-items: center; gap: 12px; margin: 26px 0; padding: 14px; border: 1px solid #eae7e3; background: #faf9f7; border-radius: 8px; }
.login-app-icon { flex: 0 0 36px; display: grid; place-items: center; height: 36px; color: #c90009; background: #f7eeeb; border-radius: 6px; }
.login-app-icon svg { width: 19px; height: 19px; }
.login-destination > div { min-width: 0; }
.login-destination-label { display: block; color: #6b6562; font-size: 11px; margin-bottom: 3px; }
.login-destination strong { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; font-weight: 600; }
.login-destination-host { display: block; margin-top: 3px; font-size: 11px; color: #6b6562; overflow-wrap: anywhere; }
.login-destination-arrow { flex: 0 0 17px; width: 17px; height: 17px; margin-left: auto; color: #8c8580; }
.login-field { margin-bottom: 20px; }
.login-field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; min-width: 0; height: 48px; padding: 12px 14px; color: #252323; background: #fff; border: 1px solid #cfcac5; border-radius: 6px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #837b76; font-size: 14px; opacity: 1; }
.login-field input:focus { border-color: #c90009; box-shadow: 0 0 0 3px #d4000114; outline: none; }
.login-field input[aria-invalid="true"] { border-color: #c90009; }
.login-password { position: relative; }
.login-password input { padding-right: 70px; }
.login-password-toggle { position: absolute; right: 6px; top: 4px; min-width: 54px; height: 40px; padding: 0 8px; background: transparent; color: #5b5450; border: 0; border-radius: 4px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.login-password-toggle:hover { background: #f6f5f3; color: #252323; }
.login-remember { display: flex; align-items: center; gap: 10px; margin: 2px 0 24px; min-height: 24px; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #d40001; cursor: pointer; }
.login-remember label { color: #57514d; font-size: 13px; cursor: pointer; padding: 4px 0; }
.login-submit { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 20px; background: #d40001; color: #fff; border: 1px solid #d40001; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .15s; }
.login-submit svg { width: 18px; height: 18px; }
.login-submit:hover { background: #b80001; border-color: #b80001; }
.login-shell button:focus-visible, .login-shell a:focus-visible, .login-remember input:focus-visible { outline: 2px solid #bd0008; outline-offset: 4px; }
.login-shell .login-help { margin-top: 20px; text-align: center; color: #746c67; font-size: 12px; line-height: 1.65; }
.login-shell .login-support { margin-top: 24px; color: #736c67; font-size: 12px; text-align: center; line-height: 1.6; }
.login-error { margin: 0 0 22px; padding: 12px 14px; border: 1px solid #efc4c5; border-radius: 6px; color: #a20009; background: #fff5f5; font-size: 13px; line-height: 1.5; }
.login-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 48px; color: #817972; font-size: 11px; line-height: 1.5; }
.login-footer span:first-child { color: #57514d; font-weight: 600; }

@media (max-width: 540px) {
  .login-brand { min-height: 76px; padding: 20px 24px; gap: 14px; }
  .login-brand img { width: 122px; height: 24px; }
  .login-brand > span:last-child { min-width: 0; font-size: 13px; line-height: 1.4; }
  .login-content { padding: 30px 20px 22px; }
  .login-card { padding: 30px 24px 26px; border-radius: 12px; }
  .login-intro h1 { font-size: 29px; }
  .login-footer { flex-direction: column; align-items: center; gap: 5px; padding: 18px 24px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell * { transition: none; }
}
