/* Estilos generales */
.fondo {
    min-height: 100vh;
    width: 100%;
    background-image: url('../images/Login/fondologin.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.container-princ-2 {
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 1500px;
    margin: 110px auto 0px;
    min-height: 30rem; 
    height: auto;
    overflow: hidden; 
}

.estilo-fondo {
    background-color: rgba(246, 217, 111);
    border-radius: 30px;
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    height: auto;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Previene desbordamiento */
}

.card {
    background-color: transparent;
    width: 100%;
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    border-color: rgba(246, 217, 111);
}

.card-body {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.form-container {
    flex: 0 0 50%; /* El formulario ocupará el 50% del ancho del contenedor en pantallas grandes */
    max-width: 50%;
    box-sizing: border-box;
}

.card-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    background-color: #f5f8f9;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
select,
input[type="date"]::placeholder {
    color: rgba(229, 187, 20, 0.94);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
input[type="date"]:focus {
    border-color: rgba(229, 187, 20, 0.94);
    outline: none;
    box-shadow: 0px 0px 5px rgba(229, 187, 20, 0.94);
}

/* Estilo para el botón */
.btn {
    background-color: rgba(229, 187, 20, 0.94);
    color: white;
    height: 48px;
    border-color: rgba(229, 187, 20, 0.94);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%; /* Ahora ocupa el 100% del contenedor */
    max-width: 350px; /* El botón no será más ancho que 350px */
    display: block;
    margin: 20px auto;
}

.btn:hover {
    background-color: rgba(246, 217, 111);
}

.btnSesion{
    text-decoration: none; 
    color: white; 
    font-weight: bold;
}

.btnSesion:hover{
    text-decoration: none; 
    color: black; 
    font-weight: bold;
}

.tipo_doc {
    height: 5rem;
}

/* Contenedor para la imagen en el lado derecho */
.imagen-lado-derecho {
    flex: 0 0 50%; /* La imagen ocupará el 50% del ancho del contenedor en pantallas grandes */
    max-width: 50%;
}

.imagen-lado-derecho img {
    width: 93%;
    height: auto;
    object-fit: contain;
    margin-left: 10px;
}

/* Estilos para las redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons img {
    width: 30px;
    cursor: pointer;
}

.social-icons img:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

input[type="checkbox"] {
    margin-right: 10px;
}

label {
    font-size: 14px;
    font-weight: normal;
    color: #333;
}

/*========Nuevo*/

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.or-divider:not(:empty)::before {
    margin-right: .25em;
}

.or-divider:not(:empty)::after {
    margin-left: .25em;
}

.or-divider span {
    padding: 0 10px;
    font-size: 16px;
    color: white; /* Color similar al modelo */
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .card-title {
        font-size: 2.5rem; /* Reduce el tamaño de la fuente */
        text-align: center; /* Asegura que el texto esté centrado */
        
    }
}

/* Adaptaciones para pantallas pequeñas con transparencia */
@media screen and (max-width: 768px) {
    .container-fluid {
        max-width: 100%;
        padding: 0; /* Eliminar padding si es necesario */
        margin: 0 auto; /* Asegura que esté centrado */
        background-color: transparent;
    }

    .fondo{
        margin: 0px;
        padding: 0px;
        background-image: url('../images/Login/fondomovil.png'); ; 
    }
    .container-princ-2{
        max-width: auto; /* Usar el ancho completo de la pantalla */
        flex-direction: column; /* Apilar los elementos verticalmente */
        background-color: transparent;
        box-shadow: none;
    }
    
    .estilo-fondo{
        margin: 0;
    }
    .card-title {
        font-size: 2rem; /* Reduce el tamaño de la fuente aún más para pantallas pequeñas */
        text-align: center; /* Mantén el texto centrado */
    }

    .form-container {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .imagen-lado-derecho {
        display: none; /* Ocultamos la imagen en pantallas pequeñas */
    }

    .container-form-reg {
        margin-top: 20px;
    }

    /* Aplicamos transparencia solo para pantallas pequeñas */
    .fondo {
        background-color: rgba(255, 255, 255, 0); /* Fondo con transparencia */
    }

    .container-princ-2,
    .estilo-fondo {
        background-color: rgba(255, 255, 255, 0); /* Fondo del contenedor con transparencia */
        box-shadow: none;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    input[type="date"] {
        padding: 15px; /* Más espacio interno */
        font-size: 16px;
        margin: 0px;
        border-radius: 5px; /* Bordes redondeados */
        background-color: #fff; /* Fondo blanco */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra suave */
    }

    .card{
        border-color: rgba(255, 255, 255, 0);;
    }
}
