:root {
  font-family: "Segoe UI", Arial, sans-serif; color: #203741; background: #f8faf8;
  font-synthesis: none; --green: #6bba64; --teal: #1e6869; --muted: #61787e;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { outline-offset: 5px; }
:focus-visible { outline: 3px solid #1e6869; }
h1, h2, p { margin: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 12px; background: white; z-index: 9; }
.skip-link:focus { top: 12px; }
.login-shell { min-height: 100svh; margin: 0; }
.brand-panel { position: relative; display: flex; flex-direction: column; padding: 34px 4% 30px; background: #edf4ef; overflow: hidden; }
.brand { display: block; width: 233px; }
.brand img { display: block; width: 100%; height: auto; }
.brand-story { margin: auto 0; padding-top: 40px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #3f7069; }
.brand-line { width: 27px; height: 2px; background: #6bba64; }
h1 { font-size: clamp(38px, 3.6vw, 59px); font-weight: 600; letter-spacing: -2px; line-height: 1.14; margin: 25px 0 24px; }
h1 span { color: #1e6869; }
.brand-story > p { color: #526c6e; font-size: 16px; line-height: 1.85; }
.brand-illustration { height: 238px; position: relative; max-width: 410px; margin: 36px 0 8px; }
.orbit { position: absolute; border: 1px solid #d1e2d8; border-radius: 50%; width: 280px; height: 280px; left: 55px; top: -5px; }
.orbit-two { width: 360px; height: 360px; left: 15px; top: -45px; }
.tile { position: absolute; background: #fff; border: 1px solid #e1e9e4; border-radius: 14px; box-shadow: 0 12px 35px #2037410b; font-size: 12px; font-weight: 600; }
.tile-one { left: 18px; top: 18px; width: 240px; padding: 20px; transform: rotate(-4deg); }
.tile-icon { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 8px; background: #eaf4e8; color: #30672c; margin-right: 10px; font-size: 22px; }
.chart-bars { height: 67px; display: flex; align-items: end; gap: 12px; margin: 20px 0 0; padding-left: 5px; }
.chart-bars i { display: block; background: #b8d9bc; width: 21px; border-radius: 4px 4px 0 0; height: 30%; }
.chart-bars i:nth-child(2) { height: 46%; }
.chart-bars i:nth-child(3) { height: 40%; }
.chart-bars i:nth-child(4) { height: 67%; }
.chart-bars i:nth-child(5) { height: 79%; }
.chart-bars i:nth-child(6) { height: 100%; background: #1e6869; }
.tile-two { top: 51px; left: 215px; padding: 15px; transform: rotate(5deg); white-space: nowrap; }
.tile-check { display: inline-grid; place-items: center; width: 26px; height: 26px; background: #fff0df; color: #92602e; border-radius: 50%; margin-right: 8px; }
.tile-three { top: 177px; left: 93px; padding: 15px 19px; display: flex; align-items: center; gap: 9px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #6bba64; border-radius: 50%; flex-shrink: 0; }
.brand-footer { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #526b6b; position: relative; z-index: 1; padding-top: 20px; }
.access-panel { display: flex; flex-direction: column; padding: 44px 4.5% 28px; background: #fff; }
.back-link { font-size: 12px; color: #61787e; text-decoration: none; align-self: flex-end; }
.back-link:hover { text-decoration: underline; }
.access-content { width: 100%; max-width: 390px; margin: auto; padding: 65px 0; }
.access-label { display: flex; align-items: center; gap: 9px; color: #496d68; letter-spacing: 1.8px; font-size: 10px; font-weight: 700; margin-bottom: 24px; }
.lock-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; color: #1e6869; background: #edf5ef; border-radius: 7px; letter-spacing: 0; font-size: 17px; }
h2 { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.9px; }
.intro { margin-top: 12px; color: #61787e; font-size: 14px; }
form { margin-top: 34px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.field input { width: 100%; height: 51px; border: 1px solid #cbdad4; border-radius: 8px; background: #fff; padding: 0 15px; color: #203741; font-size: 14px; }
.field input::placeholder { color: #7c8c8c; }
.field input:focus { border-color: #1e6869; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 51px; border: 1px solid #6bba64; border-radius: 8px; padding: 13px 19px; background: #6bba64; color: #203741; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; margin-top: 29px; }
.submit-button:hover { background: #60af59; }
.submit-button > span { font-size: 21px; font-weight: 400; }
.submit-button > .desktop-label, .submit-button > .mobile-label { font-size: inherit; font-weight: inherit; }
.mobile-label, .password-toggle { display: none; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 11px; color: #61787e; }
.security-note > span { color: #1e6869; font-size: 17px; }
.stage-note { border-top: 1px solid #e4ebe7; margin-top: 32px; padding-top: 21px; }
.stage-label { font-size: 9px; letter-spacing: 1.6px; font-weight: 700; color: #647d77; }
.stage-note p { font-size: 12px; line-height: 1.7; color: #61787e; margin-top: 8px; }
.access-footer { display: flex; justify-content: space-between; gap: 16px; color: #6c807e; font-size: 10px; }
.error-message { padding: 13px 15px; background: #fff4ef; border: 1px solid #e6bba9; color: #813d24; border-radius: 7px; font-size: 13px; line-height: 1.6; margin-top: 22px; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #ebf6e8; border-radius: 50%; color: #397b33; font-size: 27px; margin-bottom: 24px; }
.diagnostic > p { color: #61787e; font-size: 14px; line-height: 1.75; margin-top: 15px; }
.steps { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 24px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps li > span { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; background: #f1f4f2; border: 1px solid #dbe6e2; border-radius: 50%; font-size: 12px; color: #61787e; }
.steps .completed > span { color: #397b33; background: #ebf6e8; border-color: #c7dfc2; }
.steps strong { display: block; font-weight: 600; font-size: 13px; }
.steps small { display: block; color: #61787e; font-size: 11px; margin-top: 4px; }
.notice { font-size: 12px; color: #6b543a; background: #fff6e9; padding: 16px; border-radius: 8px; line-height: 1.75; }
.simple-page { max-width: 600px; margin: 15vh auto; padding: 24px; }
.simple-page h1 { font-size: 30px; }
.simple-page p, .simple-page a { display: block; margin-top: 20px; }
@media (min-width: 1400px) {
  .brand-panel { padding-left: 6.5%; padding-right: 5%; }
  .access-panel { padding-left: 6%; padding-right: 6%; }
}
@media (max-width: 991.98px) {
  .brand-panel { padding-left: 4%; padding-right: 2.5%; }
  .access-panel { padding-left: 4.5%; padding-right: 4.5%; }
  .tile-two { left: 174px; }
  h1 { font-size: 43px; }
  .brand-story > p { font-size: 14px; }
  h2 { font-size: 27px; }
}
@media (max-width: 767.98px) {
  .login-shell { min-height: 100dvh; background: #fff; align-content: flex-start; }
  .brand-panel { padding: 12px 20px 4px; min-height: 0; background: #fff; }
  .brand { width: 142px; }
  .brand-story, .brand-footer, .back-link, .access-label, .intro,
  .access-content > h2, .security-note, .stage-note, .access-footer { display: none; }
  .access-panel { min-height: 0; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); }
  .access-content { margin: 0 auto; padding: 8px 0 0; max-width: 400px; }
  form { margin-top: 0; }
  .field { margin-bottom: 18px; }
  .field label { font-size: 14px; margin-bottom: 8px; }
  .field input { height: 50px; font-size: 16px; min-width: 0; }
  .password-input { position: relative; }
  .password-input input { padding-right: 82px; }
  .password-toggle:not([hidden]) {
    display: flex; align-items: center; justify-content: center; position: absolute;
    right: 2px; top: 2px; min-width: 72px; min-height: 46px; padding: 0 8px;
    border: 0; border-radius: 6px; background: transparent; color: #1e6869;
    font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .password-toggle:hover { background: #edf4ef; }
  .submit-button { margin-top: 22px; min-height: 50px; font-size: 16px; }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .error-message { margin: 0 0 18px; padding: 11px 13px; font-size: 13px; }
  .diagnostic h2 { font-size: 24px; }
  .diagnostic > p { display: none; }
  .success-icon { width: 42px; height: 42px; margin-bottom: 16px; font-size: 23px; }
  .steps { margin: 22px 0; gap: 18px; }
  .notice { padding: 13px; }
}

/* Segundo paso: mantiene el marco existente y solo añade controles de verificación. */
.mfa-description { margin-top: 14px; color: #61787e; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.mfa-identificacion { margin-bottom: 24px; }
.mfa-identificacion h2 { overflow-wrap: anywhere; }
.saludo-contacto { color: #1e6869; font-size: 14px; line-height: 1.6; margin-bottom: 12px; overflow-wrap: anywhere; }
.empresa-opciones { display: grid; gap: 10px; }
.empresa-opcion { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; border: 1px solid #cbdad4; border-radius: 8px; background: #fff; padding: 13px 16px; color: #203741; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.empresa-opcion.empresa-preferida { background: #edf4ef; border-color: #7ea99b; color: #1e6869; font-weight: 600; }
.empresa-opcion:hover:not(:disabled) { background: #e2eee6; border-color: #1e6869; }
.empresa-opcion:focus-visible { outline: 2px solid #1e6869; outline-offset: 3px; }
.empresa-opcion:disabled { opacity: .55; cursor: default; }
.empresa-panel .error-message { margin-bottom: 18px; }
.field .mfa-code { text-align: center; font-size: 24px; letter-spacing: .45em; padding-left: 24px; }
.mfa-help { font-size: 12px; color: #61787e; line-height: 1.7; }
.email-verification-note { margin-bottom: 12px; }
.alternate-secondary { display: block; width: 100%; margin-top: 10px; }
.alternativo-panel .mfa-description { font-size: 14px; }
.alternativo-panel .error-message { margin-bottom: 18px; }
.alternate-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 14px; }
.alternate-links .mfa-back { margin-top: 0; }
@media (max-width: 767.98px) {
  .empresa-panel h2 { font-size: 24px; }
  .mfa-identificacion h2 { font-size: 24px; }
  .empresa-panel form { margin-top: 24px; }
  .alternativo-panel h2 { font-size: 24px; }
  .alternativo-panel .mfa-description { font-size: 13px; margin-top: 12px; }
  .alternativo-panel > form { margin-top: 24px; }
  .alternativo-panel > .mfa-resend { margin-top: 8px; }
}
.mfa-resend { margin-top: 18px; text-align: center; }
.resend-button { min-height: 46px; padding: 10px 14px; background: transparent; border: 0; border-radius: 7px; color: #1e6869; cursor: pointer; font-weight: 600; font-size: 13px; }
.resend-button:hover { background: #edf4ef; }
.resend-button:disabled { color: #61787e; cursor: default; }
.mfa-back { display: block; margin-top: 14px; text-align: center; font-size: 12px; color: #61787e; }
.mfa-inline { margin-top: 30px; }
.mfa-inline > form { margin-top: 0; }
.mfa-inline > .mfa-resend { margin-top: 12px; }
.mfa-inline > .mfa-back { margin-top: 0; }
@media (max-width: 767.98px) {
  .mfa-inline { margin-top: 0; }
  .mfa-inline > .mfa-resend { margin-top: 8px; }
  .mfa-description { font-size: 13px; margin-top: 10px; }
  .field .mfa-code { font-size: 22px; }
}
