/* Estilos para o popup de login */
.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow: auto;
}

body.popup-open {
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}

.login-popup-content {
    background-color: #020711;
    border: 1px solid #C962FF80;
    width: 82%;
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popup-animation 0.3s ease-out;
}

@keyframes popup-animation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #000;
}

.popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.popup-logo img {
    max-width: 150px;
    height: auto;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: 'poppins';
}

.tab-button:hover {
    color: var(--e-global-color-accent);;
}

.tab-button.active {
    color: #fff;
    background: var(--e-global-color-cafed23);
    border-radius: 10px;
}

.tab-content {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #fff;
    font-family: 'poppins';
}

.form-group input {
    width: -webkit-fill-available;
    padding: 12px;
    border: 2px solid var(--e-global-color-cafed23);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: none;
    color: #fff;
    font-family: 'poppins';
}

.form-group input:focus {
    border-color: var(--e-global-color-accent);
    outline: none;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.toggle-password.show {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
}

.phone-group .phone-input {
    display: flex;
}

.phone-input select {
    width: 80px;
    min-width: 80px;
    margin-right: 10px;
    border: 2px solid var(--e-global-color-cafed23);
    border-radius: 5px;
    padding: 0 10px;
    background-color: var(--e-global-color-primary);
    color: #fff;
    font-family: 'poppins';
}

.phone-input input {
    flex: 1;
    width: calc(100% - 90px);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--e-global-color-accent);
    text-decoration: none;
    font-size: 14px;
    font-family: 'poppins';
}

.forgot-password a:hover {
    text-decoration: underline;
}

.terms-check {
    margin: 20px 0;
}

.terms-check label {
    color: #a0a0a0;
    font-family: 'poppins';
}

.terms-check input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.terms-check a {
    color: var(--e-global-color-secondary);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

.login-button,
.register-button {
    width: 100%;
    padding: 12px;
    background-color: #2D0A4E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover,
.register-button:hover {
    background-color: #3D1466;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100000;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2D0A4E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Garantir que o popup esteja fora de qualquer container limitador */
body > .login-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-popup-content {
        padding: 20px;
        margin: 20px auto;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .login-button,
    .register-button {
        padding: 10px;
    }
}

/* Fim do arquivo */ 