/* login-enhanced.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Global Overrides */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Hero Background Section */
.hero-background {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.company-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.company-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Login Section */
.login-section {
    flex: 1;
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #667eea; /* Fallback for browsers that don't support background-clip */
}
/* Form Styling */
.login-form .field {
    margin-bottom: 1.5rem;
}

.login-form .label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.login-form .input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.login-form .input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.login-form .control.has-icons-left .icon.is-left {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.login-form .input:focus + .icon.is-left {
    color: #667eea;
}

/* Password Toggle Styling - Forzar posicionamiento */
.control.has-icons-right {
    position: relative !important;
}

.password-toggle {
    cursor: pointer !important;
    color: #a0aec0 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    position: absolute !important;
    right: 0.625em !important;
    top: 0.625em !important;
    transform: none !important;
    width: 1.5em !important;
    height: 1.5em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.password-toggle:hover {
    color: #667eea !important;
    transform: scale(1.1) !important;
}

.password-toggle i {
    pointer-events: none !important;
    font-size: 1rem !important;
}

/* Asegurar que el input no tenga conflictos */
.login-form .control.has-icons-right .input {
    padding-right: 2.5em !important;
}

/* Button Styling */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

/* Footer Fix */
.custom-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.custom-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-background {
        height: 35vh;
        min-height: 250px;
        background-attachment: scroll;
    }

    .company-title {
        font-size: 2.5rem;
    }

    .company-subtitle {
        font-size: 1.1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }

    .login-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }
}