/* RESET COMPLETO para evitar conflictos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY con gradiente y centrado */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 20px;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta blanca */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* Logo y título */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    color: #667eea;
    font-size: 60px;
    margin-bottom: 15px;
}

.login-logo h2 {
    color: #667eea;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.login-logo p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

/* Wrapper para inputs con ícono */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    color: #667eea;
    font-size: 16px;
    z-index: 1;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-icon-wrapper input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon-wrapper input::placeholder {
    color: #a0aec0;
}

/* Checkbox personalizado */
.checkbox-wrapper {
    margin-bottom: 25px;
}

.checkbox-custom {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    user-select: none;
    position: relative;
}

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.checkbox-custom:hover input ~ .checkmark {
    border-color: #667eea;
}

.checkbox-custom input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-custom input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-custom .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Botón de login */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn i {
    font-size: 16px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Texto demo */
.demo-text {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.demo-text small {
    color: #a0aec0;
    font-size: 12px;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .login-logo i {
        font-size: 50px;
    }
    
    .login-logo h2 {
        font-size: 24px;
    }
}