/* =======================================
   VARIABLES DE COLOR
======================================= */
:root {
    --color-principal: #236072;
    --color-boton: #4082bc;
    --color-boton-sec: #72a6c3;
}

/* =======================================
   GENERALES
======================================= */
body, html {
    height: 100%;
    margin: 0;
}

/* =======================================
   IMAGEN IZQUIERDA CIRCULAR
======================================= */
.circle-image-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-image {
    width: 90%;
    height: 90%;
    max-width: 550px;
    max-height: 550px;
    border-radius: 50%;
    overflow: hidden;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ocultar en mobile */
@media (max-width: 768px) {
    .circle-image-wrapper {
        display: none;
    }
}

/* =======================================
   FORMULARIO
======================================= */
.form-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.login-box {
    width: 100%;
    max-width: 520px;
}

@media (min-width: 992px) {
    .login-box {
        margin-left: -220px;
    }
}

/* =======================================
   TEXTOS / TITULOS
======================================= */
.titulo-principal,
.titulo-acceso,
.form-group label {
    color: var(--color-principal) !important;
    font-weight: 600;
}

.titulo-acceso {
    font-weight: bold;
}

/* =======================================
   INPUTS
======================================= */
.form-control {
    border-radius: 20px !important;
    padding: 10px 15px;
}

.password-group {
    margin-bottom: 5px !important;
}

/* =======================================
   LINK "OLVIDASTE TU CONTRASEÑA"
======================================= */
.olvidaste-link {
    color: var(--color-boton-sec) !important;
    font-weight: 500;
    display: inline-block;
    margin-top: 2px;
    margin-bottom: 18px;
}

/* =======================================
   BOTONES
======================================= */
.boton-principal {
    background-color: var(--color-boton) !important;
    border-color: var(--color-boton) !important;
}

.boton-nueva {
    background-color: var(--color-boton-sec) !important;
    border-color: var(--color-boton-sec) !important;
}

/* =======================================
   IMAGEN DERECHA ESTRECHA
======================================= */
.right-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 100vh;
    overflow: hidden;
}

.right-image img {
    width: 500%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

/* Ocultar en mobile */
@media (max-width: 768px) {
    .right-image {
        display: none;
    }
}

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); 
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1050;
  }

  .overlay .fas {
    color: #007bff; 
    font-size: 2rem; 
  }

  #loginOverlay {
    display: none;
  }


/* --- MOBILE: mostrar solo el 20% inferior arriba, sin mover nada --- */
@media (max-width: 768px) {
    .right-image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20vh;           /* solo se ve un 20% */
        overflow: hidden;       /* oculta el resto */
        z-index: 1;             /* por debajo del contenido */
        pointer-events: none;   /* no interfiere con clics */
    }

    .right-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: bottom;  /* 👈 muestra SOLO la parte de abajo */
        transform: translateY(-80%); 
        /* 👆 asegura que la parte inferior sea la visible */
    }
}