﻿:root {
    --primary-color: #2B4B6F;
    --secondary-color: #3498db;
    --text-color: #333;
    --input-bg: rgba(255, 255, 255, 0.9);
}

.login-wrapper {
    min-height: 100vh;
    background: url('/images/fondo.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 310px; /* Reducido para ser más compacto */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.brand-container {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 200px; /* Ajustado al tamaño del logo de ChronoExpress */
    height: auto;
    margin-bottom: 1rem;
}

.brand-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.0rem;
}

    .input-group input {
        width: 100%;
        padding: 0.75rem 0rem 0.75rem 0.2rem; /* Padding ajustado para iconos */
        border: 1px solid #e1e1e1;
        border-radius: 4px;
        background: var(--input-bg);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

    .input-group .icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        font-size: 1rem;
    }

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover {
        background: #1a365d;
    }

.alert {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Contenedor para los efectos de vehículos */
.vehicle-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    overflow: hidden;
}

/* Estilos responsivos */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }

    .brand-logo {
        width: 140px;
    }
}

input {
    text-align: center; /* Centra el texto y el placeholder */
    padding: 10px; /* Ajusta el padding para mejor apariencia */
    font-size: 16px; /* Ajusta el tamaño del texto */
}
