* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url(../image/iglesia.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f4f4;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 700px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border-radius: 8px;
}

/* Columna izquierda con imagen e info */
.info {
    flex: 1 1 300px;
    background-image: url(../image/iglesialogin.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100%;        /* Asegura que ocupe toda la altura del .container */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;      /* Menor padding para evitar corte de imagen */
}


.txt-1 {
    font-size: 18px;
    margin-bottom: 15px;
}

.info h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info hr {
    width: 55px;
    border: 4px solid #fff;
    margin: 0 auto 20px auto;
}

.txt-2 {
    font-size: 16px;
}

/* Formulario */
.form {
    flex: 1 1 300px;
    padding: 60px 40px;
    text-align: center;
    background-color: #fff;
}

.form h2 {
    color: blueviolet;
    font-size: 28px;
    margin-bottom: 20px;
}

.form p {
    font-size: 15px;
    color: #6e6d6d;
    margin-bottom: 25px;
}

.box {
    width: 100%;
    outline: none;
    border: none;
    border-left: 5px solid blueviolet;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    font-size: 16px;
}

.submit {
    background-color: blueviolet;
    width: 100%;
    padding: 14px;
    border: 0;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.submit:hover {
    background-color: purple;
    transition: background-color 0.3s;
}

/* Enlace */
.form a {
    display: inline-block;
    color: blueviolet;
    text-decoration: none;
    font-size: 15px;
    margin-top: 15px;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
    }

    .info, .form {
        width: 100%;
        padding: 40px 30px;
    }

    .info h2 {
        font-size: 30px;
    }

    .form h2 {
        font-size: 24px;
    }

    .submit {
        font-size: 15px;
    }
}


@media(max-width:990px) {
    .container {
        width: 350px;
        height: 600px;
        margin-top: 100px;
    }

    .info {
        display: none;
    }

    .form {
        width: 100%;
        padding: 30px;
    }
}

/* Modo oscuro */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
    background-image: url(../image/iglesia.jpg); /* Mantener la imagen de fondo */
    background-position: center;
}

.dark-mode .container {
    background-color: #2a2a2a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-top: 50px;
}

.dark-mode .info {
    background-image: url(../image/iglesialogin.jpg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 150px 50px;
    text-align: center;
    width: 50%;
}

.dark-mode .txt-1,
.dark-mode .txt-2,
.dark-mode .info h2 {
    color: #fff;
}

.dark-mode .txt-1 {
    font-size: 20px;
    margin-bottom: 25px;
}

.dark-mode .info h2 {
    font-size: 50px;
    margin-bottom: 25px;
}

.dark-mode .info hr {
    width: 55px;
    border: 4px solid #fff;
    margin-left: 170px;
    margin-bottom: 25px;
}

.dark-mode .form {
    padding: 150px 100px;
    width: 50%;
    text-align: center;
    background-color: #333;
}

.dark-mode .form h2 {
    color: blueviolet;
    font-size: 30px;
    margin-bottom: 25px;
}

.dark-mode .form p {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 25px;
}

.dark-mode .box {
    outline: none;
    border-color: blueviolet;
    border-width: 0px 0px 0px 5px;
    border-style: solid;
    padding: 15px 35px;
    margin-bottom: 20px;
    background-color: #444;
    color: #e0e0e0;
}

.dark-mode .inputs a {
    color: blueviolet;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 35px;
}

.dark-mode .submit {
    background-color: blueviolet;
    width: 200px;
    margin-top: 20px;
    padding: 15px;
    border: 0;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 4px;
}

.dark-mode .submit:hover {
    background-color: purple;
    transition: background-color 0.3s;
}

@media(max-width:990px) {
    body.dark-mode {
        background-color: #121212;
    }

    .dark-mode .container {
        width: 350px;
        height: 600px;
        margin-top: 100px;
    }

    .dark-mode .info {
        display: none;
    }

    .dark-mode .form {
        width: 100%;
        padding: 30px;
        background-color: #333;
    }
}
