* {
    font-size: 14px;
}

a {
    text-decoration: underline;
    color: #2075bd;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.13;
    letter-spacing: normal;
    color: #232537;
}


.cell-center {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
}

.always_down {
    position: absolute;
    bottom: 5%;
}

.center {
    text-align: center;
}

.form-control {
    height: 40px;
}

.form-control:disabled,
input:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

label {
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: #3b3f4b;
}

input {
    border-radius: 2px;
    border: solid 1px #c6c7c7;
    background-color: #ffffff;
}

input[type='text'] {
    border-radius: 4px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: #8a8d8f;
}

button {
    width: 180px;
    height: 40px;
    border-radius: 4px;
    background-color: #2075bd;
    color: #ffffff;
}

button:hover {
    background-color: #125c9b;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

#contenedor {
    width: 100%;
    height: 100%;
    background-color: #f6f6f6;
}

body.e-shipper-vista #contenedor > div {
    max-width: 1180px;
    margin: auto;
}
body.e-shipper-vista #contenedor > div.footer.center {
    max-width: none;
    height: 54px;
}
#contenedor > .row:first-child {
    height: 94%;
}

.rectangle {
    /*height: 100%;*/
    box-shadow: 0 0 10px 0 rgba(35, 37, 55, 0.12);
    background-color: #ffffff;
    position: relative;
}

.rectangle div {
    width: 100%;
    height: fit-content;
}

.rectangle .cnt_login {
    margin-top: 30%;
}

div#forgot form > .row {
    margin-top: 5%;
}

div#forgot form > .row div {
    padding: 0;
}

div#forgot form > .row div h3 {
    padding-top: 2px;
}

body.e-shipper-vista .login-form {
    max-width: 284px;
    height: 332px;
    margin: 0 auto;
}

#expired h3 {
    margin: 15% 0;
}

#email, #changed {
    max-width: 100%;
}

#email img {
    margin-top: 15%;
}
body.e-shipper-vista #email img {
    margin-top: 16px;
    margin-bottom: 5px;
}
#changed {
    margin: 10% auto;
}

.tar {
    text-align: right;
}

.tal {
    margin-top: 10%;
    margin-bottom: 10%;
}

.always_down div {
    margin-left: -15px;
}

.img_iso {
    width: 165px;
    height: 61px;
    object-fit: contain;
    background-color: #000000;
}

.panel_right > .row {
    height: 50%;
}
body.e-shipper-vista .panel_right > .row,
body.e-shipper-vista .row.always_down
{
    display: none;
}
body.e-shipper-vista a {
    color: #2075BD;
}
body.e-shipper-vista .rectangle a {
    text-decoration: none;
}
body.e-shipper-vista .panel_right {
    background: url(/appimgnew/fondo_es-v-login.svg) no-repeat center right;
    background-size: 86%;
    height: 100%;
}
body.e-shipper-vista.ocean .panel_right {
    background: url(/appimgnew/ocean_login_bg.svg) no-repeat center right;
    background-size: 86%;
    height: 100%;
}
body.e-shipper-vista .row.cnt_login.rectangle {
    padding-top: 32px;
    margin: auto;
    max-width: 30em;
    border-radius: 4px;
}
body.e-shipper-vista .login-form {
    max-width: calc(100% - 5em);
    height: unset;
}
body.e-shipper-vista .login-form form {
    margin-bottom: 0;
}
body.e-shipper-vista div.login-form input[type="submit"] {
    background: #2075bd;
    width: 100%;
    color: white;
    margin: 24px 0 12px;/* -4 */
    line-height: 2em;
    border-radius: 4px;
    /*height: 40px;*/
    font-size: 14px;
    padding: 5px 0;
    border-color: #2075bd;
}
body.e-shipper-vista.corpo .rectangle div:first-child a img {
    max-height: 76px;
}
body.e-shipper-vista .rectangle div:first-child a img {
    max-height: 62px;
}
body.e-shipper-vista .rectangle div:first-child h3 {
    margin: 16px 0 0;
}
body.e-shipper-vista.corpo .rectangle div:first-child h3 {
    margin: 11px 0 0;
}
body.e-shipper-vista input.form-control,
body.e-shipper-vista .tal {
    margin-top: 0;
}
body.e-shipper-vista input.form-control::placeholder{
    color:#afb2b2;
}
body.e-shipper-vista .tal {
    margin-bottom: 0;
}
body.e-shipper-vista .powered {
    text-align: center;
}
body.e-shipper-vista .powered hr {
    margin: 32px;
}
body.e-shipper-vista .powered img {
    margin: 0 0 24px;
}
body.e-shipper-vista .powered p {
    margin: 24px 0 32px;
    font-size: 1em;
}
body.e-shipper-vista div#login button.btn {
    display: none;
}
body.e-shipper-vista div.login-form label,
body.e-shipper-vista div.login-form br {
    display: none;
}
.g-recaptcha>div {
    margin: 16px auto;
}
body.e-shipper-vista button.btn {
    width: 100%;
}
span#vista_logerr_msg {
    display: none;
}

.mandatory-error-bootstrap+span#vista_logerr_msg {
    display: inline;
    color: red;
    position: relative;
    bottom: 24px;
}

.panel_right > .row:first-child div {
    height: 100%;
    overflow: hidden;
}

.img_big {
    height: 100%;
    width: auto;
    max-width: 100%;
}

.cnt_fichas {
    height: 100%;
}

.cnt_fichas > .row {
    margin: 1.2% 23%;
    max-height: 110px;
    height: 25%;
    border-radius: 4px;
    box-shadow: 0 0 10px 0 rgba(35, 37, 55, 0.12);
    background-color: #ffffff;
}

.cnt_fichas .row div {
    max-height: 110px;
}

.cnt_fichas .row div img:not(.img_very_small) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    position: absolute;
    max-height: 75%;
}

.cnt_text {
    top: 50%;
    position: absolute;
    text-align: left;
    transform: translate(0%, -50%);
    -webkit-transform: translate(0%, -50%);
}

.img_very_small {
    max-width: 66px;
    margin-top: 5px;
}


img#poweredby {
    width: 20%;
    margin-top: 2%;
}

.footer {
    width: 100%;
    height: 6%;
    box-shadow: 0 0 10px 0 rgba(35, 37, 55, 0.12);
    background-color: #ffffff;
    display: table;
    position: fixed;
    bottom: 0;

    font-size: 12px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 2;
    letter-spacing: normal;
    color: #626874;
}

.footer a,
.footer span {
    font-size: 12px;
}

.footer > div {
    vertical-align: center;
    display: table-row;
}

@media only screen and (max-height: 800px) {
    .img_iso {
        display: none;
    }
}

@media only screen and (max-height: 640px) {
    .rectangle .cnt_login, .tal {
        margin-top: 7%;
        margin-bottom: 2%;
    }

    .img_iso,
    .img_very_small {
        display: none;
    }

    .cnt_fichas img:not(.img_very_small) {
        max-height: 100%;
        max-width: 100%;
    }

    #expired h3 {
        margin: 5% 0;
    }
}

@media only screen and (max-height: 450px) {
    .panel_right > .row:first-child,
    .img_iso, .app-info {
        display: none;
    }

    .panel_right .row {
        height: 100%;
    }
    img#poweredby {
        width: 90%;
    }
    .cnt_fichas > .row {
        margin: 2% 0;
    }

    .img_very_small {
        display: initial;
    }

}

@media only screen and (max-width: 1366px) and (min-width: 959px) {
    .cnt_fichas > .row {
        margin: 1.2% 10%;
    }
}

@media only screen and (max-width: 958px) {
    .rectangle img {
        width: 100%;
    }

    .panel_right > .row:first-child,
    .img_iso {
        display: none;
    }

    .panel_right .row {
        height: 100%;
    }
    img#poweredby {
        width: 100%;
        margin-top: 30%;
    }

    .cnt_fichas > .row {
        margin: 2% 0;
    }

    .img_very_small {
        display: initial;
    }

    .rectangle .btn {
        min-width: 100%;
        width: 100%;
    }

}

.app-info {
    text-align: center;
}

.app-links a {
    display: inline-block;
    padding-left: 1.5em;
    background: url("https://static-content.webcargonet.com/img/Android_logo.svg") 0 10px no-repeat;
    color: #2075bd;
    font-size: 14px;
    text-decoration: none;
    margin: 0 1em;
}

.app-links a:nth-of-type(2) {
    background-image: url("https://static-content.webcargonet.com/img/Apple_logo.svg");
}

.app-links a span.shadowimg {
    position: relative;
    top: -5px;
    left: -10px;
    visibility: hidden;
    margin-top: 48px;
}

.app-links span.shadowimg img {
    position: absolute;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.14);
    padding: 15px 14px;
    border-radius: 6px;
    background: white;
    width: auto;
    height: auto;
    top: -108px;
    left: -38px;
}

img.img_iso {
    width: 184px;
    height: 68px;
    margin: 5% 0 0;
    object-fit: contain;
    background-color: #000000;
}

.app-links a span.triangle {
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    content: " ";
    position: relative;
    background: white;
    display: block;
    top: -10px;
    left: 36px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.14);
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 85%, 76% 0);
    visibility: hidden;
}

.app-links a:hover span.shadowimg,
.app-links a:hover span.triangle {
    visibility: visible;
}

/* ============================================
  New Modern Login Design Styles
  ============================================ */

.login-layout {
  min-height: 100vh;
  margin: 0;
  background: #fbfbfb;
}

body.e-shipper-vista .login-layout {
  background: #ffffff;
}

.login-left-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.login-left-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.login-card {
  width: 414px;
  background: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.login-logo {
  text-align: center;
  margin-bottom: 16px;
}

.login-logo img {
  max-width: 277px;
  height: auto;
}

body.e-shipper-vista .login-logo img {
  max-height: 62px;
}

body.e-shipper-vista.corpo .login-logo img {
  max-height: 76px;
}

.login-welcome {
  text-align: center;
  margin-bottom: 24px;
}

.welcome-title {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 22.5px;
  letter-spacing: 0px;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.welcome-subtitle {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0px;
  text-align: center;
  color: #666666;
  margin: 0;
}

.login-form-fields {
  margin-bottom: 0;
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  display: none;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 2px;
  top: 55%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: background-color 0.2s;
  outline: none !important;
}

.password-toggle:hover {
  background-color: #ffffff;
}

.password-toggle:focus,
.password-toggle:active,
.password-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.password-toggle img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.password-toggle:hover img {
  opacity: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  color: #3b3f4b;
  margin: 0;
}

.remember-checkbox {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  accent-color: #2075bd;
  cursor: pointer;
  flex-shrink: 0;
}

.forgot-password-link {
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  color: #2075bd;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  width: 100%;
  height: 40px;
  background-color: #2075bd;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  background-color: #125c9b;
}

.btn-login:active, .btn-login:focus {
  transform: translateY(1px);
  background-color: #2075bd;

}

/* Error Message */
.error-message {
  display: block;
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

/* Support Details */
.support-details {
  text-align: center;
  font-size: 12px;
  color: #666666;
  margin-top: 16px;
}

.support-details a {
  color: #2075bd;
  text-decoration: none;
}

.support-details a:hover {
  text-decoration: underline;
}


.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 24px 0;
}

.trial-text {
  text-align: center;
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  color: #666666;
  margin: 0;
}

.trial-link {
  color: #2075bd;
  text-decoration: none;
  font-weight: 400;
}

.trial-link:hover {
  text-decoration: underline;
}

.mobile-apps-section {
  width: 414px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-apps-title {
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  color: #666666;
  margin: 0 0 16px 0;
  text-align: center;
}

.mobile-apps-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mobile-apps-section .app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 206px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #E5E6E6;
  border-radius: 4px;
  text-decoration: none ;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mobile-apps-section .app-link:hover {
  transform: translateY(-2px);
  border-color: #2075bd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1a1a1a;
}

.mobile-apps-section .app-link:visited {
  color: #1a1a1a ;
  text-decoration: none;
}

.mobile-apps-section .app-link .app-icon {
  width: 16px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.mobile-apps-section .app-link span {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #3B3F4B;
  white-space: nowrap;
}

.login-right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
  background: #fbfbfb;
  position: relative;
  overflow: hidden;
}

/* Contenedor principal para las capas */
.login-right-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Capa 1: Fondo PrincipalLogin (incluye nube) */
.login-bg-principal {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 591px;
  height: 408;
  pointer-events: none;
  box-sizing: border-box;
}

.login-bg-principal img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Capa 2: Marketing Cards */
.marketing-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
  position: relative;
  z-index: 20;
  margin-bottom: 120px;
  box-sizing: border-box;
}
.marketing-card-winner,
.marketing-card-trophy {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px 21px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.marketing-card-winner { gap: 30px; }
.marketing-card-trophy { gap: 20px; }

.marketing-card-icon {
  flex-shrink: 0;
  width: 82px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketing-card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.marketing-card-content {
  flex: 1;
}

.marketing-card-content h3 {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 17.76px;
  font-weight: 600;
  color: #3B3F4B;
  margin: 0;
}

.marketing-card-content p {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 12px;
  color: #53575F;
}

.marketing-card-content a {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 14px;
  color: #2075bd;
  text-decoration: none;
}

.marketing-card-content a:hover {
  text-decoration: underline;
}

.marketing-card-content .img_very_small {
  max-width: 60px;
  height: auto;
  margin-top: 4px;
}

/* Capa 3: Avión flotante */
.login-airplane {
  position: absolute;
  top: 51%;
  right: calc(48.5% - 200px);
  z-index: 30;
  width: 148px;
  height: auto;
  pointer-events: none;
  box-sizing: border-box;
}

.login-airplane img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

body.e-shipper-vista .login-right-panel {
  background: url(/appimgnew/fondo_es-v-login.svg) no-repeat center right;
  background-size: 86%;
}

body.e-shipper-vista.ocean .login-right-panel {
  background: url(/appimgnew/ocean_login_bg.svg) no-repeat center right;
  background-size: 86%;
}


/* Responsive Design */
@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
  }

  .login-left-panel {
    min-height: auto;
    padding: 20px;
  }

  .login-left-content {
    gap: 32px;
  }

  .login-card {
    width: 100%;
    max-width: 414px;
    height: auto;
    min-height: 458px;
    padding: 32px 24px;
  }

  .login-right-panel {
    display: none;
  }

  .mobile-apps-section {
    width: 100%;
    max-width: 414px;
  }

  .mobile-apps-links {
    align-items: center;
  }

  .app-link {
    width: 206px;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 24px 20px;
  }

  .welcome-title {
    font-size: 20px;
  }

  .btn-login {
    height: 44px;
  }
}

/* Compatibility with existing e-shipper-vista styles */
body.e-shipper-vista .login-card {
  box-shadow: none;
  padding: 32px;
}

body.e-shipper-vista .login-welcome h2 {
  margin: 16px 0 0;
}

body.e-shipper-vista.corpo .login-welcome h2 {
  margin: 11px 0 0;
}

body.e-shipper-vista .form-group label,
body.e-shipper-vista .form-group br {
  display: none;
}

/* Loading State */
#loading.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

#loading.login-form i {
  color: #2075bd;
}

/* Form States */
.login-form {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forgot Password Form */
#forgot .g-recaptcha {
  margin: 16px 0;
}

#forgot .g-recaptcha > div {
  margin: 0 auto;
}

/* Expired Password Form */
#expired .form-group {
  margin-bottom: 20px;
}

/* Email Sent Form */
#email img {
  margin: 0 auto;
}

/* Changed Password Form */
#changed img {
  margin: 0 auto;
}

/* ============================================
   MFA Verification Styles
   ============================================ */

/* MFA Card */
.mfa-card {
  width: 414px;
  min-height: auto;
}

.mfa-form {
  width: 100%;
}

.mfa-subtitle {
  font-size: 14px;
  line-height: 21px;
  color: #3B3F4B;
  font-weight: 400;
}


/* OTP Input Container */
.otp-input-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.otp-input-container.has-error {
  margin-bottom: 4px;
}

.otp-input {
  width: 32px;
  height: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid #E5E6E6;
  border-radius: 8px;
  background-color: #ffffff;
  color: #53575F;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input:hover {
  border-color: #2075bd;
}

.otp-input:focus {
  outline: none;
  border-color: #2075bd;
  box-shadow: 0 0 0 3px rgba(32, 117, 189, 0.15);
}

.otp-input-error {
  border-color: #D8271E;
  background-color: #FFEDE1;
  color: #D8271E !important;
}

.otp-input-error:focus {
  border-color: #D8271E;
  box-shadow: 0 0 0 3px rgba(216, 39, 30, 0.15);
}

.otp-input:disabled {
  background-color: #F5F5F5 !important;
  border-color: #E5E6E6 !important;
  color: #B0B0B0 !important;
  cursor: not-allowed;
}

.otp-input-error:disabled {
  background-color: #FFEDE1;
  border-color: #D8271E;
  color: #D8271E;
  cursor: not-allowed;
}

/* MFA Error Message */
.mfa-error-message {
  margin-bottom: 24px;
  text-align: center;
  width: 232px;
  margin-left: auto;
  margin-right: auto;
}

.mfa-error-message span {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0px;
  text-align: center;
  vertical-align: middle;
  color: var(--Semantic-Red-30, #D8271E);
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* MFA Buttons */
.mfa-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-mfa-cancel {
  flex: 1;
  height: 40px;
  background: #FFFFFF;
  color: #2075BD;
  border: 1px solid  #2075BD;
  border-radius: 6px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mfa-cancel:hover {
  background: #FFFFFF !important;
  border-color: #2075BD !important;
  color: #2075BD !important;
}

.btn-mfa-cancel:active,
.btn-mfa-cancel:focus {
  background: #FFFFFF !important;
  border-color: #2075BD !important;
  color: #2075BD !important;
}

.btn-mfa-verify {
  flex: 1;
  height: 40px;
  background-color: #2075bd;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mfa-verify:hover:not(:disabled) {
  background-color: #125c9b;
}

.btn-mfa-verify:active:not(:disabled),
.btn-mfa-verify:focus:not(:disabled) {
  background-color: #2075bd;
  color: #ffffff;
}

/* Show border on verify button when OTP inputs are hovered */
.login-form-fields.otp-inputs-hovered .btn-mfa-verify:not(:disabled) {
  border: 1px solid #2075bd;
  box-shadow: 0 0 0 3px rgba(32, 117, 189, 0.15);
}

.btn-mfa-verify:disabled {
  background-color: #b0c4d8;
  cursor: not-allowed;
}

/* MFA Options (Remember + Resend) */
.mfa-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mfa-remember {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: #3b3f4b;
  margin: 0;
}

.mfa-resend {
  font-size: 14px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.resend-link {
  color: #2075bd;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.resend-link:hover {
  color: #125c9b;
  text-decoration: underline;
}

.resend-countdown {
  color: #B0CEE8 !important;
  font-size: 14px;
}

/* MFA Help Section */
.mfa-help {
  border-top: 1px solid #e0e0e0;
  padding-top: 24px;
  margin-top: 8px;
}

.mfa-help-text {
  text-align: center;
  font-size: 12px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3B3F4B;
  margin: 0;
  font-weight: 400;
}

.mfa-help-link {
  font-size: 12px;
  color: #2075BD;
  text-decoration: none;
  font-weight: 400;
}

.mfa-help-link:hover {
  text-decoration: underline;
}

/* MFA Page specific */
body.mfa-page {
  background-color: #f6f6f6;
}

body.mfa-page #contenedor {
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}

/* MFA Active - Center the card when MFA screen is shown */
body.mfa-active .login-left-panel {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

body.mfa-active .login-layout {
  justify-content: center;
}

/* Responsive MFA */
@media (max-width: 768px) {
  .mfa-card {
    width: 100%;
    max-width: 414px;
    padding: 24px;
  }

  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }

  .otp-input-container {
    gap: 6px;
  }

  .mfa-buttons {
    flex-direction: column;
  }

  .btn-mfa-cancel,
  .btn-mfa-verify {
    width: 100%;
  }

  .mfa-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .mfa-resend {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .otp-input {
    width: 36px;
    height: 44px;
    font-size: 18px;
  }

  .otp-input-container {
    gap: 4px;
  }
}

/* Max Resends Info Message */
.mfa-resend-info-text {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #666666;
  text-align: center;
  margin-bottom: 16px;
}
