/* ====================================================================
   🎨 L2J [BR] PROJECT - AUTH PAGES STYLING
   Authentication pages (login.php, register.php) unified styles
   ==================================================================== */

/* ====================================================================
   🎯 CSS CUSTOM PROPERTIES (EASY COLOR CUSTOMIZATION)
   ==================================================================== */
:root {
    /* 🎨 Main Color Scheme - Modify these to change the entire theme */
    --roxo-principal: #6B46C1;
    --roxo-hover: #8B5CF6;
    --roxo-escuro: #4C1D95;
    --roxo-claro: #A78BFA;
    --roxo-destaque: #7C3AED;
    
    /* 🌑 Background Colors */
    --background-dark-1: #131316;
    --background-dark-2: #101013;
    
    /* ✨ Accent Colors */
    --verde-sucesso: #4eff9c;
    
    /* 📝 Text Colors */
    --texto-claro: #ffffff;
    --texto-secundario: #b0b0b0;
    
    /* 🖼️ Borders */
    --borda-sutil: #2a2a2d;
}

/* ====================================================================
   🔄 RESET & BASE STYLES
   ==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default !important;
}

/* Cursor overrides for interactive elements */
a, button, .btn, [role="button"], input[type="submit"], input[type="button"] {
    cursor: pointer !important;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    cursor: text !important;
}

/* ====================================================================
   🌌 BODY & MAIN LAYOUT
   ==================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark-1);
    color: var(--texto-claro);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    min-height: 100vh;
}

/* Background image with texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/background_brproject.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Responsive background visibility */
@media (max-width: 768px) {
    body::before {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body::before {
        opacity: 0.05;
    }
}

/* ====================================================================
   📜 CUSTOM SCROLLBAR
   ==================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark-2);
}

::-webkit-scrollbar-thumb {
    background: var(--roxo-principal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--roxo-hover);
}

/* ====================================================================
   🎯 SIDE MENU (ROTATING SOCIAL ICONS)
   ==================================================================== */
.side-menu {
    position: fixed;
    right: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg) scale(0.9);
    transform-origin: center;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 16px;
    background: rgba(19, 19, 22, 0.9);
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--borda-sutil);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.side-menu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--roxo-destaque);
    border: 1px solid var(--roxo-hover);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.side-menu-icon:hover {
    background: #131316;
    color: var(--roxo-destaque);
    transform: scale(1.1);
    border-color: var(--roxo-hover);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
}

.side-menu-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.side-menu-icon:hover::before {
    left: 100%;
}

/* Side menu responsiveness */
@media (max-width: 1200px) {
    .side-menu {
        right: -110px;
        padding: 10px 20px;
        gap: 14px;
    }
    
    .side-menu-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .side-menu {
        display: none;
    }
}

/* ====================================================================
   🏠 HEADER NAVIGATION
   ==================================================================== */
.custom-header {
    background: var(--background-dark-1);
    padding: 0;
}

.logo-brand {
    color: var(--roxo-destaque);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-link {
    color: var(--texto-claro) !important;
    transition: color 0.3s ease;
    font-size: 20px;
}

.nav-link:hover {
    color: var(--roxo-destaque) !important;
}

.btn-criar-conta {
    background: var(--roxo-destaque);
    color: white;
    border: none;
    transition: background 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 100px;
    border-radius: 4px;
}

.btn-criar-conta:hover {
    background: var(--roxo-hover);
    color: white;
}

.btn-entrar {
    background: transparent;
    color: var(--roxo-destaque);
    border: 1px solid var(--roxo-destaque);
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 100px;
    border-radius: 4px;
}

.btn-entrar:hover {
    background: var(--roxo-destaque);
    color: white;
    border-color: var(--roxo-destaque);
}

.navbar-brand {
    font-size: 18px !important;
    font-weight: bold;
}

.navbar-text {
    font-size: 16px !important;
}

/* Purple decorative line */
.purple-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--roxo-destaque) 50%, transparent 100%);
    margin: 0;
    width: 100%;
}

/* ====================================================================
   📦 MAIN SECTION & AUTH CONTAINER
   ==================================================================== */
.main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Modern auth container with gradient and effects */
.auth-container {
    background: linear-gradient(145deg, rgba(39, 21, 75, 0.322) 0%, rgba(74, 42, 144, 0.274) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 
        0 0 20px rgba(165, 75, 244, 0.103),
        0 0 80px rgba(124, 58, 237, 0.151),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    color: var(--texto-claro);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.562);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.05), rgba(139, 69, 255, 0.05));
    z-index: 0;
}

.auth-container > * {
    position: relative;
    z-index: 1;
}

/* ====================================================================
   🖼️ LOGO & TITLES
   ==================================================================== */
.auth-container img {
    width: 280px;
    max-width: 90%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.11));
}

.auth-container h1 {
    font-size: 28px;
    color: var(--roxo-claro);
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ====================================================================
   ⚠️ MESSAGE ALERTS
   ==================================================================== */
/* Error messages */
.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 14px;
}

/* Success messages */
.success-message {
    background: rgba(78, 255, 156, 0.1);
    border: 1px solid rgba(78, 255, 156, 0.3);
    color: var(--verde-sucesso);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 14px;
}

/* ====================================================================
   📝 FORM STYLING
   ==================================================================== */
.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Modern input styling */
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    background: rgba(45, 45, 80, 0.8);
    color: var(--texto-claro);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-container input::placeholder {
    color: var(--texto-secundario);
    font-style: normal;
}

.auth-container input:focus {
    background: rgba(55, 55, 90, 0.9);
    outline: none;
    border-color: var(--roxo-destaque);
    box-shadow: 
        0 0 0 3px rgba(124, 58, 237, 0.1),
        0 0 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.auth-container input:hover {
    border-color: var(--roxo-hover);
    background: rgba(50, 50, 85, 0.9);
}

/* ====================================================================
   🔘 BUTTONS
   ==================================================================== */
.auth-container button {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--roxo-destaque), var(--roxo-hover));
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.auth-container button::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.5s ease;
}

.auth-container button:hover {
    background: linear-gradient(135deg, var(--roxo-hover), #9d4edd);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.auth-container button:hover::before {
    left: 100%;
}

.auth-container button:active {
    transform: translateY(-1px);
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--roxo-claro);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.back-btn:hover {
    color: var(--roxo-destaque);
    background: rgba(124, 58, 237, 0.1);
    text-decoration: none;
    transform: translateX(-3px);
}

/* ====================================================================
   🦶 FOOTER
   ==================================================================== */
.custom-footer {
    background: var(--background-dark-2);
    padding: 50px 0 30px;
    margin-top: 0;
    border-top: 1px solid var(--borda-sutil);
    position: relative;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--roxo-destaque), var(--roxo-hover), var(--roxo-destaque));
}

.footer-text {
    color: var(--texto-secundario);
    font-size: 13px;
    margin-top: 20px;
}

.footer-text-main {
    color: var(--texto-claro);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-text-sub {
    color: var(--texto-secundario);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
    font-style: italic;
}

/* Partner sections */
.partners-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(var(--background-dark-2), var(--background-dark-2)) padding-box,
               linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.1)) border-box;
}

.copyright-section {
    margin-bottom: 0;
    margin-top: 15px;
}

.partners-text {
    color: var(--texto-claro);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.partners-subtitle {
    color: var(--texto-secundario);
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.partners-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.partner-link {
    color: var(--roxo-claro);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.partner-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--texto-secundario);
    opacity: 0.8;
}

.partner-link:hover {
    color: var(--roxo-destaque);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.partner-separator {
    color: var(--roxo-destaque);
    font-size: 18px;
    opacity: 0.8;
    font-weight: bold;
    margin: 0 10px;
}

/* ====================================================================
   📱 RESPONSIVE DESIGN
   ==================================================================== */
@media (max-width: 768px) {
    .main-section {
        padding: 20px 10px;
    }

    .auth-container {
        padding: 35px 25px;
        max-width: 95%;
        margin: 20px auto;
    }

    .auth-container h1 {
        font-size: 24px;
    }

    .auth-container img {
        width: 220px;
    }

    .btn-criar-conta,
    .btn-entrar {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .partners-list {
        gap: 15px;
    }

    .custom-footer {
        padding: 40px 0 25px;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-container h1 {
        font-size: 22px;
    }

    .auth-container img {
        width: 200px;
    }

    .partners-list {
        flex-direction: column;
        gap: 15px;
    }

    .partner-separator {
        display: none;
    }

    .partners-text {
        font-size: 14px;
    }

    .partners-subtitle {
        font-size: 11px;
    }

    .partner-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .partner-name {
        font-size: 13px;
    }

    .partner-desc {
        font-size: 10px;
    }

    .footer-text-main {
        font-size: 13px;
    }

    .footer-text-sub {
        font-size: 11px;
    }
}

/* ====================================================================
   📚 END OF AUTH STYLES
   ==================================================================== */