﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('../img/fondoLogin.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Asegura que padding se considere en el tamaño total */
}

.left-column, .right-column {
    padding: 10px;
}

.left-column {
    flex: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra horizontalmente los elementos */
    text-align: center; /* Asegura que el texto esté centrado */
}

.logo {
    margin-bottom: 20px; /* Espacio debajo del logo */
}

.spacer {
    height: 20px;
}

.nombre-estacion {
    font-size: 18px;
    color: #666666; /* Gris bonito */
    font-weight: bold;
    margin-top: 10px;
    display: block;
    opacity: 0.6; /* Hace el texto un poco transparente */
}
.right-column {
    flex: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    width: 100%;
    max-width: 150px;
}

.spacer {
    height: 20px;
}

.nombre-estacion {
    font-size: 18px;
    color: #666666; /* Gris bonito */
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: center;
    opacity: 0.6; /* Hace el texto un poco transparente */
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Asegura que padding no aumente el tamaño */
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
    }

    .left-column, .right-column {
        flex: 1;
        padding: 10px;
    }
}

@media (max-width: 760px) {
    .login-box {
        flex-direction: column; /* Coloca la columna 2 debajo de la columna 1 */
    }
}

@media (max-width: 576px) {
    .login-box {
        padding: 10px; /* Reduce el padding para pantallas muy pequeñas */
    }

    .form-control {
        font-size: 14px; /* Ajusta el tamaño de fuente en pantallas pequeñas */
    }

    .btn-primary {
        font-size: 16px; /* Ajusta el tamaño del botón en pantallas pequeñas */
    }
}

.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
}


.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    margin-bottom: 15px;
}

.circle {
    width: 50px;
    height: 50px;
    background-color: orange;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.exclamation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7); /* Casi transparente */
    font-weight: bold;
}

h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

p {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px; /* Espacio superior para separar el botón del texto */
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-container {
    text-align: center;
    color: #333;
    font-family: Arial, sans-serif;
}

.spinner {
    width: 150px;
    height: 150px;
    border: 8px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container p {
    font-size: 16px;
    font-weight: bold;
}
