/* Form Login styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal[hidden] {
    display: none;
}

.modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-image: url('assets/img/BackgroundLogin.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    padding: 26px 34px 60px;
    border-radius: 26px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: none;
    overflow: visible;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: -45px;
    left: -70px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #FFFFFF;
    color: #622E1A;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 3px 0 #6B2D17;
    z-index: 3;
}

.modal-close:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #6B2D17;
} */

#login-modal .paper-plane {
    position: absolute;
    right: -170px;
    left: auto;
    top: 52%;
    width: 250px;
    height: auto;
    transform: translateY(-50%) scaleX(-1);
    z-index: 9;
    pointer-events: none;
    animation: floatPlaneLogin 4s ease-in-out infinite;
}

.modal-body {
    position: relative;
    z-index: 2;
}

.modal-title {
    color: #F04A1A;
    font-size: 2rem;
    font-weight: 900;
    margin: 12px 0;
    text-transform: uppercase;
    line-height: 1;
}

.modal-subtitle {
    color: #622E1A;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    font-style: italic;
}

.login-form {
    margin: 16px auto 10px;
}

.form-group {
    margin-bottom: 12px;
}

#login-modal .form-group input,
#login-modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #622E1A !important;
    border-radius: 14px !important;
    background-color: #FFFDF4;
    font-size: 1rem;
    color: #622E1A;
    box-sizing: border-box;
    text-align: center;
    font-weight: 700;
    outline: none;
}

#login-modal .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235B2B1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-group input::placeholder {
    color: #8D8D8D;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #E44B18;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 0 #6B2D17;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-submit:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #6B2D17;
}

.modal-footer-text {
    margin-top: 18px;
    color: #622E1A;
    font-size: 0.95rem;
    padding: 0;
}

.modal-footer-text p {
    margin: 0;
}

.highlight-text {
    font-weight: 800;
    color: #622E1A;
    font-size: 0.95rem;
}

.highlight-text-Dos {
    font-weight: 800;
    color: #622E1A;
    font-size: 0.8rem;
}

.password-recovery-section {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.password-recovery-link {
    color: #E44B18;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.password-recovery-link:hover {
    color: #F04A1A;
    text-decoration: underline;
}

.register-section {
    margin-top: 20px;
    border-top: 1px solid rgba(98, 46, 26, 0.12);
    padding-top: 16px;
}

.register-section p {
    color: #622E1A;
    font-weight: 900;
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.btn-register {
    padding: 12px 18px;
    background-image: url('/public/assets/img/TrazadoCaffe.webp');
    width: 300px;
    height: 80px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    /* object-fit: cover; */
    color: #F7D33A;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    /* box-shadow: 0 4px 0 #E44B18; */
    /* position: relative; */
    z-index: 1;
}

.bt-register:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 3px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.btn-register:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #6B2D17;
}

.modal-badge {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-icon {
    position: relative;
    width: 55%;
    height: 55%;
    object-fit: contain;
    z-index: 1;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 22px 20px 50px;
        border-radius: 22px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    #login-modal .paper-plane {
        width: 180px;
        right: -120px;
        left: auto;
        top: 54%;
    }

    .btn-submit {
        font-size: 0.9rem;
    }

    .register-section p {
        font-size: 1rem;
    }

    .btn-register {
        min-width: 80%;
        font-size: 0.85rem;
    }

    .modal-badge {
        width: 58px;
        height: 58px;
        bottom: -28px;
    }
}

/* Validation Styles */
.form-group.has-error input,
.form-group.has-error select {
    border: 2px solid #FF0000 !important;
    background-color: #FAC8C8 !important;
}

.invalid-feedback {
    display: none;
    color: #FF0000;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.form-group.has-error .invalid-feedback {
    display: block;
}

@keyframes floatPlaneLogin {

    0%,
    100% {
        transform: translateY(-50%) scaleX(-1) rotate(0deg);
    }

    50% {
        transform: translateY(calc(-50% - 15px)) scaleX(-1) rotate(2deg);
    }
}