﻿:root {
    --primary-color: #8B5A2B; /* Color madera oscura */
    --secondary-color: #D2B48C; /* Color madera claro */
    --accent-color: #A0522D; /* Color terracota */
    --light-color: #F5F5DC; /* Beige claro */
    --dark-color: #3E2723; /* Marrón oscuro */
    --text-color: #4E342E; /* Marrón texto */
    --white: #FFFFFF;
}

.login-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-welcome-panel {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.welcome-overlay {
    background-color: rgba(62, 39, 35, 0.85);
    padding: 3rem;
    border-radius: 10px;
    color: var(--light-color);
    max-width: 600px;
    text-align: center;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

    .company-logo i {
        margin-right: 15px;
    }

    .company-logo span {
        font-weight: 700;
        letter-spacing: 1px;
    }

.login-welcome-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.slogan {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

    .feature-item i {
        color: var(--secondary-color);
        font-size: 1.5rem;
    }

.login-form-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-color);
    padding: 2rem;
}

.login-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border-top: 5px solid var(--primary-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

    .form-logo i {
        font-size: 1.8rem;
    }

    .form-logo h2 {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0;
    }

.form-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-color);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.input-with-icon {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.2);
    }

.input-with-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 1;
}

#NombreDeUsuario {
    background-image: none !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .custom-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

.btn-login {
    position: relative;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.hover-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.4s;
    z-index: 0;
}

.btn-login:hover .hover-bg {
    left: 0;
}

.login-links {
    margin-top: 1.5rem;
    text-align: center;
}

.register-text {
    color: var(--text-color);
    font-size: 0.9rem;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 0 5px;
}

    .register-link span {
        position: relative;
        z-index: 1;
    }

    .register-link:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s;
    }

    .register-link:hover:after {
        width: 100%;
    }

/* Efecto ripple */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

    .ripple-effect:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }

    .ripple-effect:active:after {
        transform: scale(0, 0);
        opacity: 0.3;
        transition: 0s;
    }

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-welcome-panel {
        padding: 2rem 1rem;
    }

    .login-form-panel {
        padding: 2rem 1rem;
    }

    .login-card {
        padding: 2rem;
    }
}
