﻿/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.title {
    text-align: center;
    margin-bottom: 24px;
    color: #2a5298;
    font-size: 1.8em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

    .form-input:focus,
    .form-select:focus {
        border-color: #2a5298;
        outline: none;
    }

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2a5298;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn-submit:hover {
        background-color: #1e3c72;
    }

.error-message {
    color: #ff4d4f;
    margin-top: 10px;
    text-align: center;
}

.info {
    margin-bottom: 18px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }

    .title {
        font-size: 1.5em;
    }
}


/* Animación del autobús */
.bus-animation-container {
    position: fixed;
    bottom: 20px;
    left: -200px; /* fuera de la pantalla */
    width: 100%;
    height: 100px;
    pointer-events: none; /* no afecta interacciones */
    z-index: 0;
}

.bus {
    width: 120px;
    height: 60px;
    background: url('/images/bus-icon.png') no-repeat center;
    background-size: contain;
    animation: moveBus 10s linear infinite;
}

@keyframes moveBus {
    0% {
        transform: translateX(-200px);
    }

    100% {
        transform: translateX(120vw);
    }
}

