
/* --- Shared Navigation & Auth Modal Styles --- */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(8, 12, 16, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.main-nav .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4a5a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

#btn-entrar-nav {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-style: italic !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.05rem !important;
    background: #ff4a5a !important;
    color: #ffffff !important;
    padding: 11px 26px !important;
    border-radius: 3px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 74, 90, 0.2) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
}

#btn-entrar-nav::after {
    display: none !important;
}

#btn-entrar-nav:hover {
    background: #ff6b78 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 74, 90, 0.35) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- Auth Modal & Dropdown --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 35, 63, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-modal-content::-webkit-scrollbar {
    width: 6px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
    background: rgba(1, 35, 63, 0.2);
    border-radius: 10px;
}

.auth-modal-overlay.active .auth-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.auth-form .input-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.auth-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.auth-form input {
    padding: 12px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(1, 35, 63, 0.1);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}

.btn-submit-auth {
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-auth:hover {
    background: #e62e2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 46, 46, 0.3);
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Validação em Tempo Real */
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    padding: 12px 20px !important;
    color: var(--primary) !important;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem !important;
    text-align: left !important;
}

.profile-dropdown a:hover {
    background: #f8fafc;
    color: var(--accent) !important;
}

.profile-dropdown a::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
}

/* --- Mobile Menu --- */
@media (max-width: 992px) {

    /* Improved Mobile Navbar */
    .main-nav .inner {
        padding: 0 15px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-logo img {
        height: 32px !important;
    }
    .profile-container {
        position: static !important;
        margin-left: auto;
        margin-right: 15px;
    }
    #btn-entrar-nav {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        height: 34px !important;
    }
    .mobile-menu-btn {
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
    }
    .profile-dropdown {
        top: 60px !important;
        right: 15px !important;
    }

    

    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 20px !important;
        right: 20px !important;
        z-index: 3000 !important;
        background: #01233f !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        width: 50px !important;
        height: 50px !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 25px !important;
        height: 3px !important;
        background: #ffffff !important;
        margin: 3px 0 !important;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px !important;
        height: 100vh;
        background: #011627 !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 40px !important;
        gap: 0 !important;
        transform: translateX(100%);
        visibility: hidden;
        transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
        z-index: 2500;
        display: flex !important;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        padding: 18px 0 !important;
        width: 100% !important;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        text-decoration: none;
        display: block !important;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a:hover {
        color: var(--accent) !important;
        padding-left: 12px !important;
    }
}

/* Travar scroll quando modal estiver aberto */
body.modal-open {
    overflow: hidden !important;
}
