﻿/*ESTILOS PARA EL HOVER USADO EN LOS BOTONES*/
.custom-hover {
    transition: all 0.3s ease;
}

    .custom-hover:hover {
        transform: translate3d(0, -3px, 0) scale3d(1.05, 1.05, 1);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        opacity: 0.95;
    }

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--bs-border-color, #d1d5db);
    background-color: var(--bs-body-bg, #fff);
    cursor: pointer;
    position: relative;
}

    .custom-checkbox input[type="checkbox"]:checked {
        background-color: #206bc4;
        border-color: #206bc4;
    }

        .custom-checkbox input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            color: white;
            font-size: 12px;
            font-weight: bold;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    .custom-checkbox input[type="checkbox"]:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.check-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--bs-body-color);
}

.terms-link {
    color: #206bc4;
    text-decoration: underline;
    cursor: pointer;
}

    .terms-link:hover {
        color: var(--bs-primary-hover, #1d4ed8);
    }

.form-check-label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: var(--bs-body-color);
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 16px;
}

/*body {
    min-height: 100vh;
}

.modern-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
}*/

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.logo {
    max-height: 60px;
    transition: transform 0.3s ease;
}

    .logo:hover {
        transform: scale(1.05);
    }

.modern-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.input-group-flat {
    position: relative;
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--bs-body-bg);
    z-index: 0;
    margin: 2px;
}

    .input-group-flat:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
        z-index: auto;
    }

.form-control {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    background: transparent;
    color: var(--bs-body-color);
}

    .form-control:focus {
        border: none !important;
        box-shadow: none !important;
        outline: none;
    }

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 20;
}

    .password-toggle-btn:hover,
    .password-toggle-btn:focus {
        color: var(--primary-color);
        outline: none;
    }


/*Boton de ingreso*/
.modern-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


    .modern-btn:hover {
        transform: translate3d(0, -3px, 0) scale3d(1.05, 1.05, 1);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        opacity: 0.95;
    }
/*.modern-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 24px;
}*/

    /* Para elementos que soportan ::before (button, a, div, etc.) */
    /*.modern-btn:not(input)::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .modern-btn:not(input):hover::before {
        left: 100%;
    }*/

    /* Hover general para todos los elementos */
    /*.modern-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }*/

    /* Efecto alternativo para inputs (asp:Button) */
    /*.modern-btn.btn-input:hover,
    input.modern-btn:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        filter: brightness(1.1);
    }*/

/*.text-primary {
    color: var(--primary-color) !important;
}

    .text-primary:hover {
        color: var(--primary-dark) !important;
    }*/

@media (max-width: 576px) {
    .modern-card {
        border-radius: 12px;
        margin: 0.5rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .logo {
        max-height: 50px;
    }

    .modern-title {
        font-size: 1.25rem;
    }
}

@keyframes error-blink {
    0%, 100% {
        border-color: #f87171;
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.2);
    }

    50% {
        border-color: #f87171;
        box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
    }
}

.input-error {
    border: 1px solid #f87171 !important;
    border-radius: 6px !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
    animation: error-blink 0.6s ease-in-out 0s 5;
    z-index: 10;
}

.error-text {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-left: 4px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

@keyframes checkbox-error-blink {
    0%, 100% {
        border-color: #dc2626;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }

    50% {
        border-color: #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.45);
    }
}

.checkbox-error {
    animation: checkbox-error-blink 0.6s ease-in-out 0s 5;
    border-color: #dc2626 !important;
}

.hidden {
    display: none !important;
}

.fade-in-slide {
    animation: fadeSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --primary-color: #0d6efd;
    --primary-dark: #084298;
    --secondary-color: #ffffff;
    --secondary-text: #0d6efd;
}
.modern-btn-secondary {
    background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    color:slategrey;
}

    .modern-btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.6s ease;
    }

    .modern-btn-secondary:hover::before {
        left: 100%;
    }

    .modern-btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        background: linear-gradient(135deg, #d0d0d0, #a0a0a0); 
        color: #111;
    }





.fa-eye::before {
    content: "Ver";
}

.fa-eye-slash::before {
    content: "Ocultar";
}
