﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.container-fluid {
    padding: 0 !important;
    margin: 0;
}

.login-form-background {
    background: url('/img/Content/fondologin2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    height: 100%;
}

    .login-form-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .login-form-background .p-5 {
        position: relative;
        z-index: 2;
    }


/* Responsive mejorado */
@media (max-width: 768px) {
    .bg-login-image {
        display: none;
    }

    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .p-5 {
        padding: 2rem !important;
    }
}

/* Responsividad para Surface Pro 7 */
@media only screen and (min-width: 768px) and (max-width: 722px), (min-height: 1824px) and (max-height: 700px) {

    .p-5 {
        max-width: 750px !important;
        padding: 5rem !important;
        border-radius: 35px;
    }

    h2 {
        font-size: 3.2rem !important;
        margin-bottom: 4rem !important;
        font-weight: 700;
        text-align: center;
        letter-spacing: 1px;
    }

    .form-control {
        font-size: 1.6rem !important;
        padding: 1.8rem 2.5rem !important;
        border-radius: 20px;
        margin-bottom: 2.5rem;
        border: 2px solid #ddd;
        transition: all 0.3s;
    }

    .form-label {
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem !important;
        display: block;
        font-weight: 500;
    }

    .form-check {
        margin: 2rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .form-check-label {
        font-size: 1.8rem !important;
        transform: translateY(2px);
    }

    .form-check-input {
        width: 2.2em !important;
        height: 2.2em !important;
    }

    /* Botón Registrarme */
    .btn-primary {
        font-size: 1.8rem !important;
        padding: 1.8rem 4rem !important;
        border-radius: 25px;
        width: 100%;
        margin: 3rem 0;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* Enlace Iniciar Sesión */
    .IrSesion {
        font-size: 1.4rem !important;
        padding: 5px 15px !important;
        display: inline-block;
        margin-top: 0.5rem !important;
    }

    /* Efectos hover para mejor interacción */
    .form-control:focus {
        transform: scale(1.02);
        border-color: #86b7fe;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Estilos del enlace "Iniciar Sesión" */
.IrSesion {
    background-color: #212022;
    color: #f7f4ef;
    border-radius: 10px;
    padding: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

    .IrSesion:hover {
        background: #b69d56;
    }

a:hover {
    color: #f7f4ef;
    text-decoration: none;
}

/* Botón Registrarme */
.btn-primary {
    font-size: 2rem;
    font-weight: 900;
    padding: 15px 30px;
    text-transform: uppercase;
}
.intl-wrapper .iti {
    width: 100%;
}

/* El input real dentro del plugin */
.intl-wrapper .iti--allow-dropdown input,
.intl-wrapper .iti--separate-dial-code input {
    width: 100% !important;
    height: 50px !important;
    border-radius: 50px !important; /* igual que tus otros campos */
    padding-left: 90px !important; /* espacio para bandera + código */
    background: #ecf1ff; /* mismo fondo que demás inputs */
    border: 1px solid #ccc;
}

.intl-wrapper .iti__flag-container {
    position: absolute; /* ya lo pone el plugin, reforzamos */
    inset: 0 auto 0 0; /* mantiene su ancho original */
    z-index: 1001; /* por encima del input */
    background: transparent;
    cursor: pointer; /* se nota que es clicable */
    pointer-events: all; /* recibe el clic */
}

/* la lista debe estar sobre cualquier card o modal */
.intl-wrapper .iti__country-list {
    z-index: 2000 !important;
}

.intl-wrapper .iti__selected-dial-code {
    margin-left: 6px;
}

/* Asegura que la lista de países quede por encima de todo */
.intl-wrapper .iti__country-list {
    z-index: 1050;
}

@media (max-width: 768px) {

    /* 1️⃣  La caja de bandera/código se sitúa sobre el input */
    .intl-wrapper .iti__flag-container {
        position: absolute; /* fija al borde izquierdo */
        inset: 0 auto 0 0; /* top:0; bottom:0; left:0; */
        width: 62px; /* mismo que usamos antes   */
        z-index: 2000; /* por encima del input     */
        pointer-events: auto; /* recibe el tap            */
        background: #ecf1ff; /* mismo color del input    */
        border-top-left-radius: 46px;
        border-bottom-left-radius: 46px;
       
    }

    /* 2️⃣  El input deja espacio (texto no pisa la caja) */
    .intl-wrapper .iti--allow-dropdown input {
        padding-left: 84px !important;
    }

    /* 3️⃣  La lista de países siempre sobre todo */
    .intl-wrapper .iti__country-list {
        z-index: 3000 !important;
    }
}