:root {
  --prometric-black: #000;
  --prometric-green: #598223;
  --prometric-bright-green: #8cc63f;
  --prometric-error: #c62828;
}

html, body { min-height: 100%; }

body.authentication-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #000;
  background: #f4f6f2;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #000; background: #fff; border: 3px solid var(--prometric-bright-green); border-radius: 4px; font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { color: #000; transform: translateY(0); }

.prometric-header {
  min-height: 76px;
  background: var(--prometric-black);
}

.prometric-header-inner {
  min-height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.client-brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.csr-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--prometric-green); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.csr-brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.csr-brand-copy strong { font-size: 15px; font-weight: 650; }
.csr-brand-copy small { margin-top: 3px; color: #aeb5aa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.prometric-logo { width: 155px; height: 61px; object-fit: contain; }
.prometric-green-line { height: 4px; background: var(--prometric-bright-green); }

.authentication-content { flex: 1 0 auto; padding: 34px 16px 48px; }
.authentication-content:focus { outline: none; }
.login-page { width: 100%; }

.login-form {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 28px 30px 26px;
  border: 1px solid #d9ded4;
  border-top: 4px solid var(--prometric-green);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 34, 18, .12);
}

.login-heading { margin-bottom: 24px; text-align: center; }
.login-heading p { margin: 0 0 6px; color: var(--prometric-green); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.login-heading h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.login-heading span { display: block; margin-top: 8px; color: #62675f; line-height: 1.4; }
.session-timeout-message { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #d8ae62; border-radius: 4px; color: #5b410f; background: #fff7e6; font-weight: 600; line-height: 1.4; }

.login-field { margin-top: 20px; }
.login-field:first-of-type { margin-top: 0; }
.login-field label { display: block; margin-bottom: 7px; font-weight: 400; line-height: 1.25; }
.login-field label span { color: var(--prometric-error); }
.login-textbox {
  width: 100%;
  min-height: 38px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.login-textbox:-webkit-autofill,
.login-textbox:-webkit-autofill:hover,
.login-textbox:-webkit-autofill:focus {
  -webkit-text-fill-color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.login-textbox:focus { border-color: var(--prometric-green); box-shadow: 0 0 0 .2rem rgba(89,130,35,.22); }
.password-input-wrapper { position: relative; }
.password-input-wrapper .login-textbox { padding-right: 44px; }
.password-visibility-button { position: absolute; top: 1px; right: 1px; width: 40px; height: 36px; padding: 9px; border: 0; border-left: 1px solid #d4d9d1; border-radius: 0 3px 3px 0; color: #4c5548; background: transparent; cursor: pointer; }
.password-visibility-button svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.password-visibility-button:hover, .password-visibility-button:focus-visible, .password-visibility-button[aria-pressed="true"] { color: var(--prometric-green); background: #f3f7ef; }
.password-visibility-button:focus-visible { outline: 2px solid var(--prometric-green); outline-offset: 2px; }

.field-validation-error, .login-error { display: block; padding-top: 8px; color: var(--prometric-error); line-height: 1.3; }
.login-error:empty { display: none; }
.login-error.validation-summary-valid { display: none; }
.login-error ul { margin: 0; padding: 10px 12px 10px 30px; background: #fde8e8; border: 1px solid #e6a5a5; border-radius: 4px; }
.captcha-field { overflow: hidden; }
.captcha-challenge { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.captcha-challenge img { width: 100%; min-width: 0; height: 72px; border: 1px solid #c9cec4; border-radius: 5px; background: #f2f2f2; }
.captcha-tools { display: flex; flex-direction: column; gap: 6px; }
.captcha-tool { width: 44px; min-height: 32px; flex: 1; padding: 0; border: 1px solid #aeb5aa; border-radius: 4px; color: #263020; background: #fff; font-size: 19px; line-height: 1; }
.captcha-tool:hover, .captcha-tool:focus { border-color: var(--prometric-green); color: var(--prometric-green); background: #f3f7ef; }
.login-actions { padding-top: 20px; text-align: center; }
.forgot-password-link { display: inline-block; margin-top: 14px; color: var(--prometric-green); font-weight: 600; }
.forgot-password-link:hover, .forgot-password-link:focus { color: #43651c; }
.recovery-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.recovery-choice { margin: 8px 0 -4px; color: #5f6759; text-align: center; font-weight: 600; }
.recovery-confirmation-card { width: min(100%, 600px); padding: 34px 36px; border-radius: 12px; box-shadow: 0 12px 36px rgba(23, 34, 18, .08); }
.recovery-confirmation-card h1 { margin: 0 0 40px; color: #70993a; text-align: center; font-size: 20px; font-weight: 700; }
.recovery-confirmation-message { margin: 0 0 20px; color: var(--prometric-green); text-align: left; line-height: normal; }
.recovery-confirmation-card .login-actions { max-width: 240px; margin: 0 auto; }
.recovery-confirmation-card .login-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.recovery-message { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #9dbc76; border-radius: 4px; color: #29430d; background: #f1f8e9; line-height: 1.4; }
.password-rules { margin: 16px 0 0; color: #51584d; line-height: 1.45; }
.password-reset-email { max-width: 1230px; margin: 6px auto; padding: 38px 16px 48px; border: 1px solid var(--prometric-green); border-radius: 5px; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.2); color: #286327; }
.password-reset-email h1 { margin: 0 0 36px; text-align: center; color: var(--prometric-green); font-size: 20px; font-weight: 700; }
.password-reset-email p { margin: 0 0 28px; font-weight: 600; line-height: 1.6; }
.login-button { width: 100%; min-height: 42px; color: #fff; background: var(--prometric-green); border-color: var(--prometric-green); font-weight: 650; }
.login-button:hover, .login-button:focus { color: #fff; background: #43651c; border-color: #43651c; }
.recovery-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recovery-actions .login-button { width: auto; }
.login-secondary-button { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--prometric-green); color: var(--prometric-green); background: #fff; font-weight: 650; }
.login-secondary-button:hover, .login-secondary-button:focus { border-color: #43651c; color: #fff; background: #43651c; }

.reset-password-card { width: min(100%, 600px); padding: 30px 36px; border-radius: 12px; box-shadow: 0 12px 36px rgba(23, 34, 18, .08); }
.reset-password-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #eef4e7; color: var(--prometric-green); }
.reset-password-card .login-heading { margin-bottom: 26px; }
.reset-password-card .login-heading span { max-width: 360px; margin: 10px auto 0; line-height: 1.5; }
.reset-password-card .login-field label { font-weight: 600; }
.reset-password-card .login-textbox { min-height: 44px; border-radius: 6px; }
.reset-password-card .field-validation-error:empty { display: none; }
.reset-password-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.reset-password-fields .login-field { margin-top: 0; min-width: 0; }
.reset-password-guidance { margin-top: 20px; padding: 14px 16px; border: 1px solid #e0e7d9; border-radius: 8px; background: #f6f8f3; color: #47513f; font-size: 13px; line-height: 1.6; }
.reset-password-guidance strong { font-weight: 600; }
.reset-password-guidance ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 22px; margin: 6px 0 0; padding-left: 18px; }
.reset-password-card .captcha-field { padding-top: 20px; border-top: 1px solid #e5e9e0; }
.reset-password-card .captcha-challenge { max-width: 350px; }
.reset-password-card .login-button { min-height: 46px; border-radius: 6px; font-size: 15px; }
.reset-password-card .forgot-password-link { margin-top: 18px; }
.reset-password-card .login-secondary-button { min-height: 46px; border-radius: 6px; font-size: 15px; }
@media (max-width: 575px) {
  .login-form.reset-password-card { padding: 24px 20px; }
  .reset-password-fields, .reset-password-guidance ul { grid-template-columns: 1fr; }
}

.prometric-footer {
  flex: 0 0 auto;
  min-height: 102px;
  padding: 9px 16px 12px;
  color: #fff;
  background: var(--prometric-black);
  text-align: center;
}

.footer-trusted { color: #70993a; font-weight: 400; }
.prometric-footer hr { margin: 6px 30px; border: 0; border-top: 1px solid #fff; opacity: 1; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; line-height: 1.5; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { color: #70993a; text-decoration: underline; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #2f4f10; }

@media (forced-colors: active) {
  .csr-brand-mark, .login-button { border: 1px solid ButtonText; }
  .skip-link, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid Highlight; }
}

@media (max-width: 575px) {
  .prometric-header-inner { padding: 8px 12px; }
  .csr-brand-copy { display: none; }
  .prometric-logo { width: 120px; height: auto; }
  .authentication-content { padding-top: 20px; }
  .login-form { padding: 24px 20px; }
  .prometric-footer { min-height: 140px; font-size: 12px; }
}
