/* Estilos de la sección de autenticación */
main {
    width: 100%;
    max-width: 500px; /* Consolidated max-width for consistency */
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease; /* Added subtle transition for hover effect */
}

main:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slight enhancement on hover */
}

main h1 {
    text-align: center;
    color: #004aad;
    margin-bottom: 20px;
    font-weight: 600; /* Added font weight for better readability */
}

main label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    margin-left: 10px;
    color: #333; /* Slightly darker label color for better contrast */
}

main input, main select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease; /* Added transition for input focus */
}

main input:focus, main select:focus {
    outline: none;
    border-color: #004aad;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

main button {
    width: 100%;
    padding: 15px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

main button:hover {
    background-color: #003080;
}

main button:active {
    transform: scale(0.98); /* Slight press effect */
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Media Queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    main {
        padding: 15px;
        margin: 10px;
    }

    main h1 {
        font-size: 22px;
    }

    main input, main select {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    main {
        max-width: 450px;
    }
}

@media (min-width: 1200px) {
    main {
        max-width: 500px;
    }
}

footer {
    text-align: center;
    margin-top: 20px;
}

footer .logo-firma {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease; /* Added hover effect for logo */
}

footer .logo-firma:hover {
    transform: scale(1.05);
}

.auth-section h2 {
    text-align: center;
    color: #004aad;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px; /* Added letter spacing for uppercase text */
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #004aad;
    font-size: 18px;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #004aad;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}