﻿:root {
    --primary-color1: #7f2841;
    --primary-dark1: #7f2841;
    --secondary-color1: #b89761;
    --text-color1: #2b2d42;
    --light-tex1t: #8d99ae;
    --bg-color1: #f8f9fa;
    --glass-bg1: rgba(255, 255, 255, 0.25);
    --glass-border1: rgba(255, 255, 255, 0.18);
    --error-color1: #ef233c;
    --success-color1: #06d6a0;
}

/* Estilos Base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.Titulo {
    font-size: 40px;
    color: var(--secondary-color1);
    font-weight: 300;
    margin-bottom: 0% !important;
}


.login-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color1), var(--primary-dark1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

    .brand-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

/* Estilos para SweetAlert */
.custom-swal-button {
    background-color: #333333 !important;
    color: white !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

    .custom-swal-button:hover {
        background-color: #555555 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }



@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.brand-content {
    text-align: center;
    z-index: 2;
    max-width: 80%;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

    .brand-content h1 {
        font-size: 5rem;
        font-weight: 400;
        margin-bottom: 1.5rem;
        color: white;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

        .brand-content h1 span {
            color: var(--secondary-color1);
            font-weight: 200;
        }

.brand-logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.glassmorphism {
    background: var(--glass-bg1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border1);
    border-radius: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.login-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color1);
    margin-bottom: 0.5rem;
}

.welcome-text {
    color: var(--light-tex1t);
    font-size: 0.95rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

    .input-group span {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--light-tex1t);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .input-group input {
        width: 100%;
        padding: 1rem 1rem 1rem 44px;
        font-size: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background-color: rgba(255,255,255,0.9);
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

        .input-group input:focus {
            border-color: var(--primary-color1);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
            outline: none;
        }

    .input-group label {
        position: absolute;
        left: 44px;
        top: 1rem;
        color: var(--light-tex1t);
        font-size: 1rem;
        pointer-events: none;
        transition: all 0.3s ease;
        background-color: transparent;
        padding: 0 4px;
    }

    .input-group input:focus + label,
    .input-group input:not(:placeholder-shown) + label {
        top: -8px;
        left: 36px;
        font-size: 0.75rem;
        color: var(--primary-color1);
        background-color: white;
    }

    .input-group.error input {
        border-color: var(--error-color1);
    }

    .input-group.error label {
        color: var(--error-color1);
    }

.error-message {
    color: var(--error-color1);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-left: 12px;
    display: none;
}

.input-group.error .error-message {
    display: block;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color1), var(--primary-dark1));
    color: white;
    border: 2px solid transparent; /* Añadido borde transparente para la transición */
    padding: calc(1rem - 2px); /* Ajuste para mantener el mismo tamaño considerando el borde */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

    .login-btn:hover {
        transform: translateY(-2px);
        background: white; /* Fondo blanco en hover */
        color: #333333; /* Texto oscuro en hover */
        border-color: #333333; /* Borde oscuro en hover */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Sombra más neutra */
    }

        .login-btn:hover svg {
            transform: translateX(4px);
            stroke: #333333; /* Cambiar color del icono SVG en hover */
        }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn svg {
        transition: transform 0.3s ease;
    }

    .login-btn:hover svg {
        transform: translateX(4px);
    }

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--light-tex1t);
}

.forgot-password {
    color: var(--primary-color1);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .forgot-password:hover {
        text-decoration: underline;
        color: var(--primary-dark1);
    }

.version {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

#Escudo {
    width: 80%;
}

#Escudo2 {
    width: 20%;
}

#Escudo3 {
    width: 35%;
    margin-bottom: 5%;
    margin-top: -8%;
}

#Escudo3-dark {
    width: 10% !important;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}



div.swal2-container button.swal2-styled.swal2-confirm {
    background-color: #333333 !important;
    color: white !important;
    border: 2px solid #333333 !important;
    transition: all 0.3s ease !important;
}

    div.swal2-container button.swal2-styled.swal2-confirm:hover {
        background-color: white !important;
        color: #333333 !important;
        border: 2px solid #333333 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }
/* Responsive Design */
@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }

    .brand-section {
        padding: 2rem 1rem;
    }

    .brand-content h1 {
        font-size: 2rem;
    }

    .login-container {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 24px 24px 0 0;
    }
}

@media (max-width: 480px) {
    .brand-content h1 {
        font-size: 1.75rem;
    }

    .login-logo {
        width: 64px;
    }

    .input-group input {
        padding: 0.875rem 0.875rem 0.875rem 40px;
    }

    .login-btn {
        padding: 0.875rem;
    }
}
