body {
    background: #f5f6fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1a365d;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #4a5568;
    font-size: 14px;
    margin: 0;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 18px 12px 40px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: none;
    color: #1a365d;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    background: white;
    border-color: #00abff;
    box-shadow: 0 0 0 3px rgba(0, 171, 255, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #718096;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #00abff;
    font-size: 16px;
    z-index: 2;
}

.btn-login {
    background: #00c14d;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: #0A7A38;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(13, 159, 71, 0.3);
}

.btn-color-test {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-color-test:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 14px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid #00c14d;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.footer p {
    color: #4a5568;
    font-size: 13px;
    margin: 5px 0;
}

.footer a {
    color: #00abff;
    text-decoration: none;
}

.footer a:hover {
    color: #0090e0;
    text-decoration: underline;
}

.car-icon {
    font-size: 42px;
    color: #00abff;
    margin-bottom: 15px;
}

/* Animaciones */
.login-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.btn-login {
    animation: slideInLeft 0.6s ease-out 0.3s;
    animation-fill-mode: both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        padding: 30px 25px;
        margin: 0;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    .car-icon {
        font-size: 38px;
        margin-bottom: 10px;
    }
    
    .form-control {
        padding: 14px 16px 14px 38px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .btn-login {
        padding: 14px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .input-icon {
        left: 12px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 25px 20px;
    }
    
    .form-control {
        padding: 12px 14px 12px 36px;
    }
    
    .input-icon {
        left: 10px;
        font-size: 15px;
    }
}

/* Mejoras específicas para dispositivos móviles */
@media (max-width: 768px) {
    .login-header {
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .footer {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .login-container {
        padding: 20px;
        max-width: 400px;
    }
    
    .login-header {
        margin-bottom: 15px;
    }
    
    .car-icon {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .login-header h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .footer {
        margin-top: 15px;
        padding-top: 10px;
    }
}