﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.authentication-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
}

.account-pages {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top:30px;
}

.login-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Columna izquierda - Branding */
.branding-section {
    flex: 1;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .branding-section::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: -100px;
        right: -100px;
    }

    .branding-section::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        bottom: -50px;
        left: -50px;
    }

.branding-content {
    position: relative;
    z-index: 1;
}

.system-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.system-description {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

    .feature-icon::before {
        content: '✓';
        font-weight: bold;
        font-size: 14px;
    }


/* Right Column - Form */
.form-section {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

    .logo-container img {
        width: 80px;
        height: auto;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }

.form-section h4 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-section .card-text {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #334155;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
}

.input-group-text {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    padding: 0.625rem 0.875rem;
    border-radius: 8px 0 0 8px;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0 8px 8px 0;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        outline: none;
    }

.btn-eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    color: #64748b;
    transition: all 0.25s ease;
    z-index: 10;
}

    .btn-eye:hover {
        color: #0ea5e9;
    }

    .btn-eye:active {
        transform: translateY(-50%) scale(0.9);
    }

    .btn-eye.rotate i {
        transform: rotateY(180deg);
    }

    .btn-eye i {
        transition: transform 0.25s ease;
        font-size: 1.1rem;
    }

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
    }

.text-muted {
    color: #64748b;
    font-size: 0.9rem;
}

    .text-muted a {
        color: #0ea5e9;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .text-muted a:hover {
            color: #0284c7;
        }

/* Validators */
span[style*="color:Red"], span[style*="color: Red"] {
    color: #ef4444 !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .branding-section {
        padding: 2rem;
        min-height: auto;
    }

    .branding-content h1 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 2rem;
    }

        .form-section h4 {
            font-size: 1.5rem;
        }
}

/* UpdateProgress Modal */
.updateProgress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modalBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#lblMensaje {
    display: block;
    padding: 0.75rem;
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.9rem;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: #0284c7;
        text-decoration: underline;
    }

    .forgot-link i {
        margin-right: 0.5rem;
    }