/* assets/css/style.css */
:root {
    --primary-color: #0d2c54;       /* Azul Corporativo Profundo */
    --primary-light: #1a4a7a;       /* Azul Claro para gradientes */
    --secondary-color: #f39c12;     /* Naranja Moto (Acción) */
    --accent-color: #e74c3c;        /* Rojo (Alertas) */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-overlay: rgba(13, 44, 84, 0.85); /* Oscurecer fondo */
}

/* CORRECCIÓN: Agregado el asterisco * */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: url('../img/fondo-motos.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 0;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: none;
}

.card-header-corp {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.card-header-corp::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Ajuste unificado para el logo */
.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: 80px; /* Altura fija para mantener consistencia */
}

.custom-logo {
    max-height: 60%; /* Que no se pase de la altura del contenedor */
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.card-header-corp h1 {
    color: white;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-header-corp p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 300;
}

/* Cuerpo del formulario */
.card-body-corp {
    padding: 40px 35px;
}

.form-group-custom {
    margin-bottom: 25px;
    position: relative;
}

.form-group-custom label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    transition: color 0.3s;
}

.form-control-custom {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 44, 84, 0.1);
    outline: none;
}

.form-control-custom:focus + i {
    color: var(--secondary-color);
}

.btn-moto-corp {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 44, 84, 0.3);
    cursor: pointer;
}

.btn-moto-corp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 44, 84, 0.4);
}

.footer-links {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.link-register {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.link-register:hover {
    color: var(--secondary-color);
}

.site-footer {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* Animaciones y Loader */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader-container {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(13, 44, 84, 0.1);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .card-header-corp { padding: 30px 20px; }
    .card-body-corp { padding: 30px 20px; }
    .card-header-corp h1 { font-size: 22px; }
}