﻿:root {
    --primary: #ab0033;
    --primary-color: #ab0033;
    --secondary-color: #bc955c;
    --text-color: #45494c;
    --primary-dark: #7a0024;
    --accent: #bc955c;
    --light-bg: #f8f9fa;
    --dark-text: #45494c;
}

body {
    font-family: 'Encode Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark-text);
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .login-container {
        flex-direction: row;
        height: 620px;
    }
}

.login-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }

    .login-left::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }

.welcome-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.welcome-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 2;
}

    .features-list li {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }

    .features-list i {
        margin-right: 10px;
        color: var(--accent);
        font-size: 1.1rem;
    }

.login-right {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

    .logo-container img {
        max-height: 90px;
    }

.form-title {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.form-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-floating {
    margin-bottom: 18px;
    position: relative; /* Necesario para posicionar el icono */
}

.form-control {
    border-radius: 7px;
    padding: 14px 16px;
    height: auto;
    border: 1px solid #e1e5eb;
    transition: all 0.3s;
    font-size: 0.95rem;
    padding-right: 45px; /* Espacio para el icono */
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(171, 0, 51, 0.2);
    }

.btn-login {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
}

    .btn-login:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        color:white;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e1e5eb;
    }

    .divider span {
        padding: 0 12px;
        color: #6c757d;
        font-size: 0.85rem;
    }

.btn-register {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 18px;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

    .btn-register:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }

.login-links {
    text-align: center;
    margin-top: 18px;
}

    .login-links a {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.3s;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.floating-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 0.95rem;
    z-index: 5;
    background: none;
    border: none;
    padding: 0;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste específico para el campo de contraseña */
.password-input-container {
    position: relative;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.validation-summary-errors {
    border-radius: 7px;
    padding: 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.field-validation-error {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: block;
}

.alert-info {
    border-radius: 7px;
    padding: 0.9rem;
    font-size: 0.9rem;
    margin-top: 15px;
}
