* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

/* Flex para que todo se ordene horizontal */
.contenedor-flex {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* Imagen izquierda */
.imagen-izquierda {
    width: 100%;
    max-width: 380px;
    display: block;
    margin-bottom: 20px;
}

/* Imagen derecha flotante */
.imagen-derecha {
    position: absolute;
    top: 100px;
    left: 700px;
    width: 100%;
    max-width: 380px;
}

/* Contenedor del formulario */
.container {
    width: 100%;
    max-width: 380px;
    margin-left: 160px;
}

/* Tarjeta de login */
.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: #1976d2;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1976d2;
}

.tab:hover:not(.active) {
    color: #333;
}

/* Alert */
.alert-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
    padding: 12px 40px 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #1565c0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    background-color: rgba(21, 101, 192, 0.1);
    border-radius: 50%;
}

/* Errores */
.error-messages {
    padding: 0 16px 16px 16px;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Formulario */
.login-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.input-group {
    display: flex;
    gap: 8px;
}

.id-type-select {
    min-width: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #666;
    cursor: pointer;
}

.id-type-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.id-number-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.id-number-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.id-number-input::placeholder {
    color: #999;
}

/* Contraseña */
.password-container {
    position: relative;
}

.password-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 2px;
}

.password-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.password-input::placeholder {
    color: #999;
    letter-spacing: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.toggle-password:hover {
    color: #333;
}

.eye-icon {
    display: block;
}

/* Botón */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background-color: #d5d5d5;
}

.submit-btn:disabled {
    cursor: not-allowed;
}

/* Enlaces */
.links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.link {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Recaptcha */
.recaptcha-text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.recaptcha-text a {
    color: #1976d2;
    text-decoration: none;
}

.recaptcha-text a:hover {
    text-decoration: underline;
}

/* Responsive móviles */
@media (max-width: 768px) {
    .imagen-derecha {
        display: none;
    }

    .contenedor-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .container {
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .imagen-izquierda {
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 380px;
    }

    .login-card {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .login-form {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .id-type-select {
        min-width: auto;
    }
}
/* Fondo oscuro del modal */
.bdb-at-backdrop--show {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(41, 41, 41, 0.8);
  z-index: 999;
}

/* Modal principal */
.modal-bdb.show {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Contenedor del modal */
.bdb-ml-modal--active {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Contenido del modal */
.bdb-ml-modal__content {
  padding: 20px;
}

/* Caja de contenido */
.bdb-ml-modal__content__box {
  text-align: center;
}

/* Ícono de advertencia */
.bdb-ml-modal__content__box__icon__ico.ico-warning {
  margin: 10px auto;
  width: 60px;
  height: 60px;
  background-color: #fcd34d; /* amarillo alerta */
  border-radius: 50%;
  position: relative;
}

.bdb-ml-modal__content__box__icon__ico.ico-warning .path1::before {
  content: "!";
  color: #000;
  font-weight: bold;
  font-size: 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* Título */
.bdb-ml-modal__content__box__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-top: 10px;
}

/* Subtítulo */
.bdb-ml-modal__content__box__sub-title {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Botón grande */
.bdb-at-btn {
  border: none;
  cursor: pointer;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.bdb-at-btn--primary {
  background-color: #004481;
  color: white;
}

.bdb-at-btn--primary:hover {
  background-color: #002e5c;
}

.bdb-at-btn--lg {
  font-size: 16px;
  padding: 12px 28px;
}

/* Alineación del botón */
.bdb-ml-modal__content__box__options {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

