/* ============================================
   Login Profesional - Sistema TDP INE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1B3C53 0%, #234C6A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.login-carousel-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
}

.login-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-carousel .carousel-item img {
    width: 100%;
    height: 90vh;
    min-height: 700px;
    object-fit: cover;
    display: block;
}

.login-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 3rem 2rem 2rem;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.login-carousel .carousel-caption h5 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #ffffff;
}

.login-carousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 3rem;
}

.login-carousel .carousel-control-prev,
.login-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 55%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.login-carousel .carousel-control-prev {
    left: 30px;
}

.login-carousel .carousel-control-next {
    right: 30px;
}

.login-carousel .carousel-control-prev:hover,
.login-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.login-carousel .carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

.login-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.login-carousel .carousel-indicators button.active {
    background: #ffffff;
    width: 32px;
    border-radius: 6px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.login-brand-logo {
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: none;
    padding: 0;
}

.login-logo {
    width: 200%;
    height: 200%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 200px;
    max-height: 200px;
}

.login-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-brand p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.login-form {
    background: #ffffff;
}

.login-form .form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-control {
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.login-form .form-control:focus {
    border-color: #234C6A;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(35, 76, 106, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #94a3b8;
}

.login-form-group {
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #234C6A 0%, #1B3C53 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 76, 106, 0.4);
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 106, 0.5);
    color: #ffffff;
}

.login-btn:active {
    transform: translateY(0);
}

.login-alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.login-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.login-footer a {
    color: #234C6A;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Input con icono */
.login-input-group {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.login-input-group .form-control {
    padding-left: 3.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }
    
    .login-left {
        min-height: 300px;
        padding: 2rem;
    }
    
    .login-carousel-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .login-carousel .carousel-item img {
        height: 300px;
    }
    
    .login-right {
        padding: 2rem 1.5rem;
    }
    
    .login-brand h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .login-brand-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .login-brand h1 {
        font-size: 1.5rem;
    }
    
    .login-form .form-control {
        height: 48px;
        font-size: 0.9375rem;
    }
    
    .login-btn {
        height: 48px;
        font-size: 0.9375rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeIn 0.6s ease-out;
}

.login-carousel-container {
    animation: fadeIn 0.8s ease-out;
}

