﻿/* login.css */
/* Contenedor y formulario */
.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
}

    .login-form .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-width: 400px;
        padding: 2.5rem 1.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.4);
        text-align: center;
    }

/* Logo y título */
.logo {
    width: 30%;
    max-width: 100px;
    margin-bottom: 1.5rem;
}

.title {
    font-size: 1.3rem;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Formulario de credenciales */
.credentials {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}

    .credentials label {
        text-align: left;
        color: #e0e0e0;
        font-size: 0.9rem;
    }

.input {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Botón */
.button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #1abc9c;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .button:hover {
        background: #16a085;
    }

/* Error */
.error {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsivo */
@media (min-width: 600px) {
    .login-form .container {
        padding: 3rem 2rem;
    }

    .title {
        font-size: 1.5rem;
    }
}
/* overlay.css */
/* Pantalla completa semi-transparente */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* hidden por defecto */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Contenedor centrado */
.loader {
    text-align: center;
}

/* El spinner circular */
.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255,255,255,0.3);
    border-top: 8px solid #1abc9c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Mensaje bajo el spinner */
.loader-text {
    color: #fff;
    margin-top: 12px;
    font-size: 1.1rem;
}

/* Animación del giro */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
