/*
    Estilos específicos para el login del Sistema de Acreditaciones.
*/

.login-container {
    width: 100%;
    /* MODIFICADO: Más ancho para la cuadrícula */
    max-width: 500px; 
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    /* NUEVO: Para posicionar el botón de volver */
    position: relative; 
}

/* Animación de entrada sutil */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #005a9c;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* --- NUEVO: Estilos para la cuadrícula de equipos --- */

.team-grid {
    display: grid;
    /* Columnas auto-ajustables (mínimo 100px) */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    gap: 20px;
}

.team-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.team-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #005a9c;
}

.team-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain; /* Para que los escudos no se deformen */
}

.team-logo span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center; /* Para nombres largos */
}


/* --- NUEVO: Botón de Volver --- */
.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-right: 2px; /* Ajuste visual de la flecha */
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #e0e0e0;
}


/* --- Estilos del Formulario de Login (Originales) --- */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-field:focus {
    border-color: #005a9c;
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.1);
}

.login-button {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: #005a9c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.login-button:hover {
    background-color: #004a80;
}

.login-button:active {
    background-color: #003a65;
}

/* Estilos para mensajes de estado (errores) */
#status-message {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #d93025;
}